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

--- Comment #71 from Bawolff (Brian Wolff) <bawolff...@gmail.com> ---
(In reply to comment #70)
> New update -- It looks like big files which 'failed to upload' are visible at
> [[Special:UploadStash]].  I'm unable to download & verify the contents of
> those files however, because the system "Cannot serve a file larger than
> 1048576 bytes."
>  Given this, it's hard to say what kind of issue this is (e.g. maybe the
> uploaded file is corrupt, i.e. file was not assembled properly server-side?)

Yes, we currently don't let people download things that are in the upload
"stash" if they are bigger than 1 mb. If it is of interest, the reason given in
the code for this is:

        // Since we are directly writing the file to STDOUT,
        // we should not be reading in really big files and serving them out.
        //
        // We also don't want people using this as a file drop, even if they
        // share credentials.
        //
        // This service is really for thumbnails and other such previews while
        // uploading.

You should be able to verify if the upload worked by requesting a thumbnail
that would be smaller than 1 mb. If it was a jpeg file, with a stash name of
11oedl0sn7e4.aggjsr.1.jpg , then a url of
Special:UploadStash/thumb/11oedl0sn7e4.aggjsr.1.jpg/120px-11oedl0sn7e4.aggjsr.1.jpg
should work. If its a video file named 11oedl0sn7e4.aggjsr.1.webm, then
Special:UploadStash/thumb/11oedl0sn7e4.aggjsr.1.webm/100px--11oedl0sn7e4.aggjsr.1.webm.jpg
would get you a thumbnail if the file is not corrupt (I think, haven't tested
that for a video)
----

>Given this, it's hard to say what kind of issue this is (e.g. maybe the
>uploaded file is corrupt, i.e. file was not assembled properly server-side?)

I wonder if some sort of timeout/race condition happened with the screwy way we
store data in the session, and maybe the file is uploaded fine, but the publish
step (i.e. The step moving file from stash to actually on-wiki) never really
happened due to timeout. If that was the case, it may be possible to do a
further API request after the fact to finish the upload.

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