Keeping track of php uploads

Posted on 16th Feb 2014 by admin

Hello all.

I was looking at the way PHP handles file uploads.
It seems that PHP uses a temporarily directory and file name for file uploads.
e.g. /var/www/virtual/SITE/phptmp/phpMhOniL

This file is deleted/moved straight after the upload finished.
Now I was wondering what this file looks like, so I decided to log on with filezilla, navigate to that dir, upload a HUGE file with php (takes a lot of time), and then refresh the directory listing in filezilla.

To my suprise: No file to be found... (exept for some sessions)

How is this possible?
How can the move_uploaded_file function work, while I cant find the file?

I hope someone can help me out.

Other forums