[PHP-DEV] PHP 4.0 Bug #8523: File details lost over multiple pages From: dht1 <email protected>
Date: 01/02/01

From: dht1 <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>