Re: QF file-rules?

From: Date: Tue, 24 Feb 2004 10:34:40 +0000
Subject: Re: QF file-rules?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10896@lists.php.net to get a copy of this message
Hi! Stephan Wentz wrote:
just a quick question, wouldn't it be possible to implement the file-rules in javascript? as far as i have seen they are only executed server-side after a submit, or did i do something wrong? (i added them with the 'client' option. at least maxfilesize, uploadedfile and filename can be implemented in javascript, i have the problem now that a customers server crashes with files bigger 2mb and i want a rule for it, but because it only validates server-side it never reaches the rule after submit of a file bigger than 2 mb...
Er, is it even possible to access local files with Javascript (needed for maxfilesize rule)? Also, uploadedfile must be checked on server, for user may type a name of the nonexistant file into the box (and this cannot be verified client-side without access to local files, too).

« previous php.pear.general (#10896) next »