commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26585] New: - JavaScript: Support 'mask' for file upload fields.
Date Mon, 02 Feb 2004 03:04:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26585

JavaScript: Support 'mask' for file upload fields.

           Summary: JavaScript: Support 'mask' for file upload fields.
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Joe@Germuska.com


Since few browser support the 'accept' attribute for file upload input fields, I find it useful
to 
specify a mask to validate that the uploaded file has a valid extension.  It's not perfect,
of course, 
but it seems like a trivial extension to add "file.type == 'file'" to the test to see whether
or not to 
apply the mask to the given field.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message