You are here: Re: Detect file size BEFORE upload it « PHP « IT news, forums, messages
Re: Detect file size BEFORE upload it

Posted by Ruben Rubio Rey on 10/18/05 11:28

Saswat Praharaj wrote:

>I guess checking the content-length field in HTTP header will help you.
>
>
I have already tried it. PHP can read content-length after complete
file is transferred.

>Regds,
>-Saswat
>
>On 10/6/05, Ruben <ruben@rentalia.com> wrote:
>
>
>>Hi,
>>
>>I have been trying _several_ ways to control the size of the files that
>>can be uploaded in a form.
>>
>>The problem is that I was able to detect file size after complete file
>>is transfered.
>>
>>I need to detect file size before all file is transfered, in order to
>>cancel it and preserve server resources.
>>
>>Any ideas?
>>
>>Thanks in advance
>>Ruben Rubio Rey
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>
>
>
>

 

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

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