Forum Moderators: coopster

Message Too Old, No Replies

Wierd Upload Problem

Files over certain size not uploading, after upload_max_filesize change

         

msykes

1:05 pm on Nov 4, 2007 (gmt 0)

10+ Year Member



Hello,

Wierd one, hope someone can help out....

I have a script which takes a zip file and decompresses it and does some other stuff to it, no problems there. However, when I give a zip file over about 1.8Mb the $_FILES array has a size 0. Files under that size are fine though.

Now the obvious one is to increase the max_upload_size in php.ini, which I set up to 100M (testing server) and still have the same problem! I restarted the server and checked phpinfo to verify the 100M was in effect btw, so I cant think of any other silly thing I missed :)

Any ideas anyone?

dreamcatcher

2:47 pm on Nov 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You`ll probably need to increase 'post_max_size' too in your ini file.

dc

msykes

3:06 pm on Nov 4, 2007 (gmt 0)

10+ Year Member



Sounded like the solution!

I changed that too (both at 100M) but still no luck... any other ideas?

jatar_k

3:12 pm on Nov 4, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



check this page
[php.net...]

also look at execution time, as the script can timeout

msykes

4:16 pm on Nov 4, 2007 (gmt 0)

10+ Year Member



As I thought... something silly I missed :)

I used the error code on the $_FILES array to track it down to a setting in a .htaccess file in a subdirectory.

Thanks for the help, and sorry for the trouble!