|
Posted by Richard Lynch on 02/08/05 22:27
Todd Cary wrote:
> I am using php 4 and Apache 1.3 on a RH 9 box.
>
> upload_max_filesize is set to 5M
>
> post_max_size is set to 8M
>
> MAX_FILE_SIZE in the HTML upload page is set to 5000000
>
> I get the error "The document contains no data" with any file over 500 KB.
>
> What is creating the error?
Are you sure the HTML one isn't 500000?... :-)
Also double-check your settings in <?php phpinfo();?> to be sure that the
php.ini you changed is the one PHP reads...
Actually, though, you shouldn't get "The document contains no data" in any
of these, unless your BROWSER is getting tired of waiting for a response
from the server.
The PHP script should still be invoked, and it should be able to detect
the over-sized file uploaded, and it should print some kind of error
message about that.
It's quite possible your script does absolutely NOTHING when the file is
over-sized, and then it prints nothing out, and so the document is
completely empty, and you get that message.
Review the PHP you wrote and see what you did for an over-sized check on
the file uploaded, or any other kind of upload error. Are you printing
SOMETHING out in that case?
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|