note 102975 added to function.move-uploaded-file
| From: | alex at alx dot bz | Date: | Thu, 17 Mar 2011 19:03:00 +0000 |
| Subject: | note 102975 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177965@lists.php.net to get a copy of this message | ||
I've run into this problem of move_uploaded_file not functioning several times, and always
troubleshoot for a good 30 minutes until I find the SAME problem (because I never learn).
Always specify the proper enctype in the HTML form:
enctype='multipart/form-data'
I'm running Apache, on Linux, so take that into consideration, but I always assume (wrongly)
that it is a permissions issue first.
----
Server IP: 69.147.83.197
Probable Submitter: 67.244.14.243
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- https://master.php.net/note/edit/102975
Del: integrated -- https://master.php.net/note/delete/102975/integrated
Del: useless -- https://master.php.net/note/delete/102975/useless
Del: bad code -- https://master.php.net/note/delete/102975/bad+code
Del: spam -- https://master.php.net/note/delete/102975/spam
Del: non-english -- https://master.php.net/note/delete/102975/non-english
Del: in docs -- https://master.php.net/note/delete/102975/in+docs
Del: other reasons-- https://master.php.net/note/delete/102975
Reject -- https://master.php.net/note/reject/102975
Search -- https://master.php.net/manage/user-notes.php