-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Gerard wrote:
I just tried uploading a 12MB TIFF (a scan directly from the Library of Congress) to Commons. It waited until the whole 12MB had uploaded, of course, to tell me it didn't want it.
[snip]
- Is there any way for the software to say "no" earlier in the
process of making a huge upload?
That's a bit of a tough problem, though there's a few things could be done.
We could fairly easily add an advisory JavaScript-level check for forbidden file extensions which would prevent the form from being submitted. That would help against not-allowed formats, but not against mislabeled or just too-big files.
Per http://bugzilla.wikimedia.org/show_bug.cgi?id=10976 there may be possibilities for cutting off long uploads early, but it may require patching PHP, and I'm not sure how easy it'd be to provide good feedback.
HTTP file upload in HTML form submissions is simply pretty awkward to work with. :P
- -- brion vibber (brion @ wikimedia.org)