Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

61 users online



upload_max_filesize

upload_max_filesize

Currently viewing this thread: 1 (0 members and 1 guests)


eu4ria

eu4ria

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:

Code:

<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

Code:

ini_set("upload_max_filesize", "10M");


but still no luck, any ideas ?

___________________

Why do we have to learn English? I speaks da *****

epyon

epyon

16, staying Asian.
Status: Offline!

do you get an error or what?

___________________

http://whatpulse.bounceme.net/sig/epyon.png

killa_kid

killa_kid

Status: Offline!

Just so you know:

Code:

<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

Motorspin

Motorspin

Neverside Newbie
Status: Offline!

It's always in bytes.

Default filesize on PHP is 2 megs..

___________________

Travis Farrell
http://motorspin.com/stuff/images/avasig/m_enterprisesig.gif

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

eu4ria

eu4ria

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' Grin

___________________

Why do we have to learn English? I speaks da *****

Motorspin

Motorspin

Neverside Newbie
Status: Offline!

What's your uploading code for PHP?

___________________

Travis Farrell
http://motorspin.com/stuff/images/avasig/m_enterprisesig.gif

eu4ria

eu4ria

married with children
Status: Offline!

like i said i dont think it is the code as such but here is the form

Code:


<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>

Grin

___________________

Why do we have to learn English? I speaks da *****

Last edited by eu4ria, August 28th, 2003 06:48 PM (Edited 1 times)

epyon

epyon

16, staying Asian.
Status: Offline!

what's the php code?

___________________

http://whatpulse.bounceme.net/sig/epyon.png

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0083 seconds.