https://bugzilla.wikimedia.org/show_bug.cgi?id=26217

           Summary: Use HTML 5 File API to apply file size limits prior to
                    upload
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Uploading
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: br...@pobox.com
                CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com


Current versions of Firefox, Chrome, and Safari support at least a portion of
the HTML 5 File API. Among other things, this allows getting at metadata about
files that have been selected in an <input type="file"> widget such as the file
size and type.

Type information isn't entirely reliable as type detection & extension maps may
vary between client and server, but size should be pretty good!

This will allow us to check the file size on selection and tell the user that
it ain't gonna fit in our upload size limits before they submit the form.

http://www.w3.org/TR/FileAPI/

http://hacks.mozilla.org/2009/12/w3c-fileapi-in-firefox-3-6/

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to