PHP 4.0 Bug #8523 Updated: File details lost over multiple pages

From: Date: Sat, 06 Jan 2001 04:29:08 +0000
Subject: PHP 4.0 Bug #8523 Updated: File details lost over multiple pages
Groups: php.dev 
Request: Send a blank email to php-dev+get-43114@lists.php.net to get a copy of this message
ID: 8523 Updated by: sniper Reported By: dht1@totalise.co.uk Old-Status: Open Status: Closed Bug Type: *Directory/Filesystem functions Assigned To: Comments: Please check this manual page: http://www.php.net/manual/features.file-upload.php It has better explained this than I can. :) (this is not a bug) --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-02 15:01:02] dht1@totalise.co.uk 1. From a form along the lines of... <form ENCTYPE="multipart/form-data" action="regact1.php" method="post" name="userdetails"> <INPUT NAME="userfile" TYPE="file"> <input type="image" name="Reset" value="Reset" src="images/xnewreset.gif"> <img src="images/xcombiner.jpg" width="103" height="80"> <input type="image" name="Submit" value="Submit" src="images/xnewcontinue.gif"> </form> Obviously, a file is entered for upload. 2. The next page dealing with the details has to pass the name of the file to a further page. In this instance, I have tried using a hidden field. 3. On the third page, in the case of this example, I would call $userfile. The expected output is received, e.g. /tmp/phpF4QcLo When trying to obtain details of the file, such as $userfile_name (etc), a null value is returned. This would suggest to me that the temporary file has expired, but the reference has not been deleted. If this is the case, then if may be preferable to have a time-restricted temp file, say, 30 mins. Alternatively, the file reference should also expire. Should you require any further information, please do not hesitate to contact me. If, on the other hand, I'm talking err... rubbish, then likewise, please let me know. Regards, David --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8523

« previous php.dev (#43114) next »