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

           Summary: Upload-by-URL should enforce $wgMaxUploadSize early when
                    Content-Length header provided
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://test.wikipedia.org/wiki/Special:Upload
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Uploading
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: br...@wikimedia.org


Currently upload-by-URL enforces $wgMaxUploadSize by counting up bytes as it
downloads, then aborting when it reaches the maximum.

This could potentially be a long time... CURL should be able to give us the
HTTP header values including any Content-Length header that may have been
provided long before we get to this point, in which case we could abort
immediately.

Ideally this ability should fold into Http class.


-- 
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