Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload files in chunks (#6510) #6531

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sebastian-berlin-wmse
Copy link

@sebastian-berlin-wmse sebastian-berlin-wmse commented Apr 12, 2024

Issue: #4303. The following is planned to be added in this PR:

Adds function for uploading a file in chunks as described on
https://www.mediawiki.org/wiki/API:Upload#Example_3:_Upload_file_in_chunks.
The chunks are created as temporary files and are removed once uploaded.

For #4303
The threshold is 100,000,000 bytes for now to be below the upload limit for
Wikimedia Commons, see
https://commons.wikimedia.org/wiki/Commons:Maximum_file_size. This makes
sure that files are chunked if they can't otherwise be uploaded. The value is
hard coded for now, but will be read from the manifest in a later patch.

For #4303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant