Win32: Handling File Uploads

From: Date: Thu, 20 Jul 2000 09:43:58 +0000
Subject: Win32: Handling File Uploads
Groups: php.general 
Request: Send a blank email to php-general+get-7385@lists.php.net to get a copy of this message
Hi, I'm using PHP 4 on Win32 to develop my applications and projects. Today I tried for the first time PHP's file-upload handler - and ran into trouble. I have the following HTML form <form enctype="multipart/form-data" action="upload.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000"> file: <input type="file" name="userfile"> </form> which gets posted to this PHP script (upload.php) <?php print "userfile : ".$userfile."<br>"; print "userfile_name : ".$userfile_name."<br>"; print "userfile_size : ".$userfile_size."<br>"; print "userfile_type : ".$userfile_type."<br>"; ?> . Following now is the output of upload.php Warning: Max file size exceeded - file [userfile] not saved in Unknown on line 0 userfile : none userfile_name : splash.jpg userfile_size : 0 userfile_type : image/pjpeg upload_tmp_dir in php.ini is set to an existing path, upload_max_filesize defaults to 2097152 bytes. Are there any known problems with handling file-upload on Win32? Any help appreciated, Sebastian -- <?php $a=explode(" " ,"119 130 128 129 45 110 123 124 129 117 114 127 45 ". "125 117 125 45 117 110 112 120 114 127");for($i=0;$i<sizeof($a);$i++)print chr($a[$i]-13);// http://gravedancer.rc5.de/ | sebastian.bergmann@web.de ?>

« previous php.general (#7385) next »