Uploading file with $HTTP_POST_FILES failed.
Dear my friends... I am trying to write a program to do uploading with HTTP_POST_FILES but I got this error message on my browsers: " Uploading Date and Time: 31-03-2003 02:03:05 Title: erw Source: dwfds Sender: sdfsd File Name:IT_Master.pdf Temporare File Name: Warning: Unable to open '' for reading: No such file or directory in /srv/www/htdocs/i-am-e-system/berita.php on line 17 Failed. " And why does the value of "$HTTP_POST_FILES['filename'][`tmp_name']" not come out? And Why could my code not copy the local file? Here is my code: " <?PHP session_start(); session_register("judul"); session_register("sumber"); session_register("pengirim"); session_register("namafile"); ?> <HTML> <BODY bgcolor="white"><FONT type="arial" size="3"> <CENTER> <FORM enctype="multipart/form-data" method="put" action="berita.php"> <CENTER><U><H1>File Uploading Menu</H1></U></CENTER><BR><BR> <TABLE> <OL> <TR> <TD><LI>Title</TD><TD>:</TD><TD><INPUT type="text" name="title" maxlength="80"></TD> </TR> <TR> <TD><LI>Source</TD><TD>:</TD><TD><INPUT type="text" name="source" maxlength="80"></TD> </TR> <TR> <TD><LI>Sender</TD><TD>:</TD><TD><INPUT type="text" name="sender" maxlength="40"></TD> </TR> <INPUT type="hidden" name="MAX_FILE_SIZE" value="10000"> <TR> <TD><LI>File Location</TD><TD>:</TD><TD><INPUT type="file" name="filename" maxlength="200"></TD> </TR> </OL> <TR> <TD colspan="2"></TD><TD><INPUT type="submit" value="Up Load"></TD> </TR> </TABLE> </FORM> </CENTER> </FONT></BODY> </HTML> " Thank you very much in advance. __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
participants (1)
-
Prabu Subroto