Date: 07/21/00
- Next message: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Previous message: Tobias Ratschiller: "[PHP-DEV] ANN: Web Application Development with PHP 4.0 published!"
- In reply to: Sebastian Bergmann: "[PHP-DEV] File Uploads and Win32"
- Next in thread: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
EMPORA Internet eCommerce Factory
http://www.empora.de - mailto:info <email protected>
At 08:45 21.07.00, you wrote:
Hi,-- PHP Development Mailing List
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 <email protected> ?>
--
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>
- Next message: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Previous message: Tobias Ratschiller: "[PHP-DEV] ANN: Web Application Development with PHP 4.0 published!"
- In reply to: Sebastian Bergmann: "[PHP-DEV] File Uploads and Win32"
- Next in thread: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Reply: Sebastian Bergmann: "Re: [PHP-DEV] File Uploads and Win32"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

