You are here: Re: Any reason why $_FILES['userfile']['error'] wouldn't be populated? « PHP Programming Language « IT news, forums, messages
Re: Any reason why $_FILES['userfile']['error'] wouldn't be populated?

Posted by Andy Hassall on 05/27/07 13:25

On 27 May 2007 04:38:47 -0700, lister <listerofsmeg01@hotmail.com> wrote:

>I am in the middle of writing an image upload script and am limiting
>the size of uploads via upload_max_filesize. This all seems to be
>working well, and if I try and upload a bigger file then I get an
>UPLOAD_ERR_INI_SIZE sat in $_FILES['userfile']['error']. All hunkey
>dorey.
>
>However, in my testing there are one or two large files that cause
>problems. PHP appears to abort the upload early as it should, but when
>my script runs, $_FILES isn't populated at all?!
>
>I have tried to narrow down the difference in these file but I can't
>seem to find anything definate. All the ones that fail are AVI or WMV
>files if that gives any clue, but even if I rename them to MPG (others
>of which work ok), and check the MIME type being sent up has also
>changed to mpg, then they still fail as before. I have sent bigger and
>smaller files all ok, so it's not size. I can't see anything in the
>filename itself that would cause problems.

Do you have error_reporting set to E_ALL? Are there any errors in the Apache
log? (in case PHP's done something unusual - although it doesn't sound like
it's dumping core). What version of PHP?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this 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

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