User talk:Rillke/bigChunkedUpload.js
Help
Gist: Helps you to get done with individual, huge uploads.
This script is intended to be used by power users who want to overwrite or upload new files over a slow connection, in relation to the file size. It assumes its users know or can imagine what a chunk, a byte, the upload stash and an offset are and how to write wiki markup. Hint: The latter is what you enter if you prefer not to use the VisualEditor. At Wikimedia Commons, the most important template is {{Information}}, which you certainly want to use on every of your file description pages.
If you don't know, you can still try your luck but don't blame me for any unexpected incidents.
How to install[edit]
Add
importScript('User:Rillke/bigChunkedUpload.js');
to your common.js.
Global or foreign wiki installation[edit]
Note that the uploads always go to the wiki you are on! Cross-Wiki upload is not supported yet.
Add
mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Rillke/bigChunkedUpload.js&action=raw&ctype=text/javascript' );
to your global.js.
Make sure you remove any imports of this script at Wikimedia Commons before enabling global import, i.e. check your common.js and vector.js (or monobook.js respectively) that you do not import the script there.
How to use[edit]
Overwriting an existing file[edit]
- Choose the second option of the upload link of any file page:
- Upload a new version of this file (chunked upload)
- Fill out the reason field in the pop up and select the file to upload.
Creating a new file[edit]
- Navigate to File:DesiredFileName.ext. Please amend the file name before selecting a file to be useful.
- Press upload (chunked) from your "Tools" box in the sidebar, or from the drop-down menu next to the create (or edit) tab. The location of the link depends on your system and settings.
- Fill out the file description field in the pop up and then select the file to upload.
Compatibility[edit]
For a rough estimation c.f. http://caniuse.com/xhr2
Troubleshooting[edit]
- In case the last chunk was uploaded and you see an error, please go to your UploadStash and try publishing from there (click here).
- If publishing doesn't work, you might be running across this error. To workaround it, follow the instructions here.
- Always select a reasonable chunk size. Uploading a 500 MiB video in 100 KiB chunks will likely fail due to server quotas while assembling the chunk. Uploading a 100 MiB video through a crappy connection with a chunk size of 20 MiB will likely be unsuccessful, too because none of the chunks will make it in one piece to the server.
- There is currently a known issue with larger DJVUs and PDFs. To successfully upload them, you have to un-tick the checkbox use stash and async (recommended for large videos and photos). Don't do this generally as it makes the upload process more unreliable.
- If larger chunks are told be uploaded 100% within no time and you encounter errors, it is most likely a proxy is taking all the data from your browser. Check your browser's and system's proxy settings then.
- Report any other issues to my talk page.
See also[edit]
- Commons:Chunked uploads
- Help:Chunked upload
- Users using bigChunkedUpload.js (including CSteipp, Software Security Engineer, Wikimedia Foundation)
- Uploads since 17 April 2024
Discussion[edit]
stashfailed[edit]
Hi, Please see phab:T200820#4826332. Thanks, Yann (talk) 11:18, 16 December 2018 (UTC)
I tried again without "stash and async" (as recommended above), and I got another error: phab:T212101. Yann (talk) 16:03, 16 December 2018 (UTC)
Uploads blocked on the first chunk[edit]
Hi, I have several examples of uploads blocked after the first chunk. No error message. Thanks, Yann (talk) 14:51, 21 March 2022 (UTC)
- Again this happens all the time. Yann (talk) 08:54, 22 April 2022 (UTC)
FAILED: internal_api_error[edit]
Hi, I got 00030: FAILED: internal_api_error_UploadChunkFileException: [d187c3cd-06f9-4930-aa79-f4c504c6be32] Caught exception of type UploadChunkFileException
while uploading a new version of File:The Collected Works of Mahatma Gandhi, vol. 52.pdf. Yann (talk) 10:06, 6 April 2022 (UTC)
Again now 00579: FAILED: internal_api_error_UploadChunkFileException: [155e92c0-67b3-4996-aaf9-4e2fc2a413b9] Caught exception of type UploadChunkFileException. Yann (talk) 11:16, 20 April 2022 (UTC)
Sever-Error 0[edit]
Hi, I got twice the message 18739: finalize/35> Sever-Error 0. Reason: error ... Still waiting for server to rebuild uploaded file and 20248: finalize/32> Sever-Error 0. Reason: error ... Still waiting for server to publish uploaded file after waiting a very log time, while uploading a new version of File:सम्पूर्ण गाँधी वांग्मय Sampurna Gandhi, vol. 56.pdf and File:सम्पूर्ण गाँधी वांग्मय Sampurna Gandhi, vol. 57.pdf. Yann (talk) 15:43, 28 April 2022 (UTC)
00135: FAILED: stashfailed: Internal error: Server failed to store temporary file.[edit]
Cannot overwrite File:Map of the city and county of New York - with the adjacent country - by David H. Burr. NYPL433800.tiff with rotated version via bigChunkedUpload. Error message: 00135: FAILED: stashfailed: Internal error: Server failed to store temporary file.
What can I do? Sebastian Wallroth (talk) 19:41, 15 December 2023 (UTC)
- @Sebastian Wallroth: I don't think this problem is related to the script. We have some phabricator tasks about the Upload Wizard encountering that error documented at COM:HD#Wizard upload not always working. You are welcome to comment at any of them. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 01:00, 16 December 2023 (UTC)
- Thank you. Sebastian Wallroth (talk) 05:27, 16 December 2023 (UTC)
- @Sebastian Wallroth: You're welcome. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 15:56, 16 December 2023 (UTC)
- Thank you. Sebastian Wallroth (talk) 05:27, 16 December 2023 (UTC)