Re: File Uploads and Win32
| From: | Andreas Mallek | Date: | Fri, 21 Jul 2000 06:56:06 +0000 |
| Subject: | Re: File Uploads and Win32 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25319@lists.php.net to get a copy of this message | ||
hi sebastian,
try this (you've forgotten the brackets ("userfile" becomes
"userfile[]");-)):
<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>
greetings
andreas mallek
mallek@empora.de
EMPORA Internet eCommerce Factory
http://www.empora.de
- mailto:info@empora.de
At 08:45 21.07.00, you wrote:
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 ?>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net