This is a discussion on http_upload example within the PHP Language forums, part of the PHP Programming Forums category; The example that come with upload.php in the HTTP_upload package creaqtes the follow html: <html><body&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
The example that come with upload.php in the HTTP_upload package
creaqtes the follow html: <html><body> <form action="/public/reenie/t/t.php?submit=1" method="post" enctype="multipart/form-data"> Send these files:<br> <input type="hidden" name="MAX_FILE_SIZE" value="100000"> <input name="userfile" type="file"> <-<br> <input name="otherfile[]" type="file"><br> <input name="otherfile[]" type="file"><br> <input type="submit" value="Send files"> </form> </body></html> When I try to use it, I choose a file and then I click "sned files". Nothing happens. The file does not get sent anywhere. Where is it supposed to be sent ? Theres nothing anywhere about which directory the file is supposed to be sent to, as far as I can see, so the example makes no sense to me. red |
|
|||
|
*** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT):
> When I try to use it, I choose a file and then I click "sned files". > Nothing happens. The file does not get sent anywhere. Where is it > supposed to be sent ? Theres nothing anywhere about which directory the > file is supposed to be sent to, as far as I can see, so the example > makes no sense to me. The code you copied takes care of sending the file. You must have a script somewhere in the server to deal with receiving it. All you need is inside the $_FILES variable. Print its values with print_r() and you'll see it clear. http://www.php.net/manual/en/features.file-upload.php -- -+ Álvaro G. Vicario - Burgos, Spain +- http://www.demogracia.com (la web de humor barnizada para la intemperie) ++ Las dudas informáticas recibidas por correo irán directas a la papelera -+ I'm not a free help desk, please don't e-mail me your questions -- |
|
|||
|
Alvaro G. Vicario wrote:
> *** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT): > >>When I try to use it, I choose a file and then I click "sned files". >>Nothing happens. The file does not get sent anywhere. Where is it >>supposed to be sent ? Theres nothing anywhere about which directory the >>file is supposed to be sent to, as far as I can see, so the example >>makes no sense to me. > > > The code you copied takes care of sending the file. You must have a script > somewhere in the server to deal with receiving it. All you need is inside > the $_FILES variable. Print its values with print_r() and you'll see it > clear. > > http://www.php.net/manual/en/features.file-upload.php Yep, that splains it. Thanx. I finally got http_upload to work. red |
![]() |
| Thread Tools | |
| Display Modes | |
|
|