note 99879 added to features.file-upload.post-method
| From: | D' | Date: | Sun, 12 Sep 2010 19:37:33 +0000 |
| Subject: | note 99879 added to features.file-upload.post-method | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172497@lists.php.net to get a copy of this message | ||
I was seeing that the files I uploaded got to the server ok, I could do filesize() and even run
shells (ls..) on the /tmp file. However, when I tried to look for the file later, it had
disappeared.
I have not found this in the PHP documentation, but after burning a couple of hours, I did a web
search, and Lo and Behold:
The temporary copied files disappears when the script ends. To store the uploaded file we need to
copy it to a different location using move_uploaded_file().
I don't know if this is classified as "missing documentation", or just something that
should be obvious...
----
Server IP: 212.150.176.151
Probable Submitter: 212.179.137.34
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.post-method.php
Edit -- https://master.php.net/note/edit/99879
Del: integrated -- https://master.php.net/note/delete/99879/integrated
Del: useless -- https://master.php.net/note/delete/99879/useless
Del: bad code -- https://master.php.net/note/delete/99879/bad+code
Del: spam -- https://master.php.net/note/delete/99879/spam
Del: non-english -- https://master.php.net/note/delete/99879/non-english
Del: in docs -- https://master.php.net/note/delete/99879/in+docs
Del: other reasons-- https://master.php.net/note/delete/99879
Reject -- https://master.php.net/note/reject/99879
Search -- https://master.php.net/manage/user-notes.php