Page MenuHomePhabricator

UploadWizard preview file is not resized
Closed, DuplicatePublic

Description

While testing the chunked upload with an artificially inflated 1x1px file, I noticed that the thumbnail are broken. After checking for failed GET requests in the net tab and opening them (the URL is /wiki/Special:UploadStash/file/<stash_filekey>), I get this error:

Internal Server Error
Cannot serve a file larger than 1048576 bytes.

which suggests that UW tries to fetch this file in its full size to show a tiny thumbnail. That doesn't really make sense for large files. (Modern browsers probably wouldn't need to get the thumbnail from the client side in the first place.)

Event Timeline

Tgr created this task.Feb 18 2015, 11:25 PM
Tgr raised the priority of this task from to Needs Triage.
Tgr updated the task description. (Show Details)
Tgr added a project: UploadWizard.
Tgr added a subscriber: Tgr.
Restricted Application added a project: Multimedia. · View Herald TranscriptFeb 18 2015, 11:25 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr updated the task description. (Show Details)Mar 4 2015, 9:25 PM
Tgr set Security to None.
Tgr updated the task description. (Show Details)
Steinsplitter moved this task from Incoming to Uploading on the Commons board.