note 99879 deleted from features.file-upload.post-method by danbrown

From: Date: Sun, 12 Sep 2010 20:52:38 +0000
Subject: note 99879 deleted from features.file-upload.post-method by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172499@lists.php.net to get a copy of this message
Note Submitter: D'n Russler d_n at CatchMedia dot com ---- 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...

« previous php.notes (#172499) next »