#3288 [Opn->Bgs]: PHP 3.014 looses uploaded files.

From: Date: Tue, 01 Oct 2002 20:11:01 +0000
Subject: #3288 [Opn->Bgs]: PHP 3.014 looses uploaded files.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21122@lists.php.net to get a copy of this message
ID: 3288 Updated by: hholzgra@php.net Reported By: rusty@alwaysthinking.com -Status: Open +Status: Bogus Bug Type: Other Operating System: Windows 98 PHP Version: 3.0.14 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2000-01-23 16:40:01] rusty@alwaysthinking.com Form POST related: Using the Windows compiled binaries. Version 3.0.14 gives a file name for uploaded files, but there is no file there. Version 4 Beta 3 works fine. PHP 3.0.14 output: Warning: Unable to open 'C:\\WINDOWS\\TEMP\\php2' for reading: Unknown error in webpages/FileUtil.php3 on line 16 Warning: Unlink failed (Permission denied) in webpages/FileUtil.php3 on line 17 File uploaded as: autoexec.bat PHP 4 output: File uploaded as: autoexec.bat Code Segment: <? //check for file upload if ( 1 > strlen( $path ) ) { $path = "."; } else { $path = rawurldecode( $path ); } if(isset($uploadedFile)) { $generatedFileName = $path; $generatedFileName .= "/"; $generatedFileName .= $uploadedFile_name; copy( $uploadedFile, $generatedFileName ); unlink( $uploadedFile ); echo "<H2>File uploaded as: ", $uploadedFile_name, "</H2>"; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3288&edit=1

« previous php.bugs (#21122) next »