Re: Detect file size BEFORE upload it

From: Date: Thu, 06 Oct 2005 06:47:00 +0000
Subject: Re: Detect file size BEFORE upload it
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-223682@lists.php.net to get a copy of this message
Ruben wrote:
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.
Not possible unless you can write your own client app. Javascript etc.'s access to file controls is heavily restricted. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

« previous php.general (#223682) next »