-
PHP file upload
Hi.
I'm having a problem with file upload.
I've set the post_max_size=8M and upload_max_filesize=20M but can't upload files that are larger than 1Mb. =)
Isn't that funny?
I have no more ideas what to configure.
I'm using IIS 5.1 and PHP 4.3
Thanx in advance!
-
Have you checked that IIS is not imposing a limit on the file upload size?
-
This happened to me too, but I was on apache and it wouldn't upload more than 6 megs, even with an ini_set right before it.
-
I know that IIS has no limits for this feature and the only limiter is PHP. That's why i don't understand.
-
Do you get any error messages, or does it just truncate the upload at 1mb? It would also be worth checking there is not some kind of timeout for uploads on the server.
-
Well it gives an alert box that "The document contains no data"
But i realised some interesting thing:
At first - server is behind a proxy!
When i use other computer (working with the server through a proxy), upload works!!!
But when i test uplod directly on the server (uploading to itself) it can't upload files larger than 1Mb.
From one hand my problem doesn't exist anymore as i can use upload from other computers and i don't need it when testing it locally, but from the other it's still mystique.
=)