Custom Quickform Rulke for detecting mimetype

From: Date: Tue, 27 Jan 2004 13:28:43 +0000
Subject: Custom Quickform Rulke for detecting mimetype
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25300@lists.php.net to get a copy of this message
Hi, I've created a custom Quickform rule to detect mimetypes. It uses PHP's mimetype function (http://nl3.php.net/manual/en/ref.mime-magic.php) instead of relying on the browser's information which cannot at all be trusted. Maybe it's useful and can be included in the next release.I'm not sure what to do with the getValidationScript method, could someone shed some light on this? I guess you can't really use javascript with this rule (?) Jeroen

« previous php.pear.dev (#25300) next »