The <input type="hidden" ... is more than a convenience for the client.  It
must be before the ...type="file"... tag and after <form.. (at least with
Mozilla Firebird as the client) If you have it in there and remember it is
in bytes not kb and set it to a size large enough the script accepting the
file will show $_FILE['name'] and it will show $_FILE['tmp_name'] having the
temporary file.  Then you take that hidden tag out and do the same the
$_FILE['tmp_name'] variable will be empty since it did not recieve the file.
So I know at least in my case that the hidden field has to be there.

Larry

-----Original Message-----
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 8:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can't upload file greater than 11kb


I've got a situation where I want to upload a file to a server then enter
the data in that file into mysql. I have used this well documented upload
form

<form enctype="multipart/form-data" action="_URL_" method="POST">
Send this file: <input name="userfile" type="file">

<input type="submit" value="Send File">

</form>

script on many php servers. However I am on one now which is not allowing me
to upload a file greater than 12kb.

I know the upload_max_filesize is 2M but something else is stopping the
upload and I don't have a clue what it is. I know you should include <input
type="hidden" name="MAX_FILE_SIZE" value="30000"> in the above form but that
is only a convenience for the user.

This particular server is running php as a cgi module.

Thanks

Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to