
August 28th, 2003
04:41 PM
married with children
Status: Offline!
upload_max_filesize
Trying to upload a text file to my server and do some processing on it but for some reason it will not accept a large file ( 1395K ) If i shrink the file and only process some of the data it works fine so I am confident it is the size of the file being uploaded.
I have this in my upload form:
<INPUT TYPE='hidden' NAME='MAX_FILE_SIZE' VALUE='10000000'>
I have also tried changing the value in php.ini to
upload_max_filesize = 10M
and then restarted apache. phpinfo shows it as allowing 10M uploads
also tried
ini_set("upload_max_filesize", "10M");
but still no luck, any ideas ?
___________________
Why do we have to learn English? I speaks da *****

August 28th, 2003
04:46 PM
16, staying Asian.
Status: Offline!
do you get an error or what?
___________________


August 28th, 2003
05:02 PM
Just so you know:
<INPUT TYPE='hidden' NAME='MAX_FILE_SIZE' VALUE='10000000'>
Is not 10mb. If that number is supposed to be kbs it should be 10240, but if it is supposed to be bytes it should be 10485760.
___________________
ProBB - The Best Thing to Happen to BBs Since YaBB

August 28th, 2003
05:08 PM
Neverside Newbie
Status: Offline!
It's always in bytes.
Default filesize on PHP is 2 megs..
___________________
Travis Farrell

Last edited by Motorspin, August 28th, 2003 05:14 PM (Edited 1 times)

August 28th, 2003
05:14 PM
married with children
Status: Offline!
no i know that 10000000 is not 10MB but as the file is only about 1.5MB is should be plenty. The error I get is 'documnet contains no data' 
___________________
Why do we have to learn English? I speaks da *****

August 28th, 2003
05:38 PM
Neverside Newbie
Status: Offline!
What's your uploading code for PHP?
___________________
Travis Farrell


August 28th, 2003
06:45 PM
married with children
Status: Offline!
like i said i dont think it is the code as such but here is the form
<FORM ENCTYPE='multipart/form-data' ACTION='<? echo $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];?>' METHOD='post'>
<INPUT TYPE='hidden' NAME='MAX_FILE_SIZE' VALUE='10000000'>
<INPUT TYPE='hidden' NAME='getfile' VALUE='1'>
<INPUT NAME='scannerfile' TYPE='file'><br>
<INPUT TYPE='submit' VALUE='Generate File'></FORM>

___________________
Why do we have to learn English? I speaks da *****
Last edited by eu4ria, August 28th, 2003 06:48 PM (Edited 1 times)