Last modified: 2011-03-04 15:39:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28217, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26217 - Use HTML 5 File API to apply file size limits prior to upload
Use HTML 5 File API to apply file size limits prior to upload
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-03 05:20 UTC by Brion Vibber
Modified: 2011-03-04 15:39 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2010-12-03 05:20:47 UTC
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/
Comment 1 Bryan Tong Minh 2011-03-04 15:39:58 UTC
r83218

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links