Reply to Re: [PHP] Cannot upload a file greater than 500 KB

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация