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

From: Date: Tue, 02 Jan 2001 20:01:02 +0000
Subject: PHP 4.0 Bug #8523: File details lost over multiple pages
Groups: php.dev 
Request: Send a blank email to php-dev+get-42658@lists.php.net to get a copy of this message
From: dht1@totalise.co.uk Operating system: Linux. Maybe others...(?) PHP version: 4.0.4 PHP Bug Type: *Directory/Filesystem functions Bug description: File details lost over multiple pages 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 -- Edit Bug report at: http://bugs.php.net/?id=8523&edit=1

« previous php.dev (#42658) next »