File upload using form

From: Date: Wed, 09 May 2001 13:29:03 +0000
Subject: File upload using form
Groups: php.general 
Request: Send a blank email to php-general+get-52101@lists.php.net to get a copy of this message
Hi! %-) The code below makes a form. This form creates a temporary file that contains the data of the original source file. This temp file is sent to the server using FTP. On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is exactly the same as the original file and so the uploaded file is the same as the original one. On my second config (RedHat 7, Apache 1.3.14, PHP 4.0.4pl1), the temp file has not the same size as the original file because a MIME header is added at the top of file and so the uploaded file is not the same as the original one. The client is IE5 under Win NT4. Where is the problem? Is it an Apache or a PHP fault? How to fix it? Thx. <form enctype="multipart/form-data" action="upload.php" method="post"> <br> Fichier : <input type="file" name="filename" size="80"> <input type="submit" value="Upload"> </form>

« previous php.general (#52101) next »