Extension:ResumableUpload
From MediaWiki.org
|
ResumableUpload Release status: beta |
|
|---|---|
| Implementation | API |
| Description | Extend the Upload API so that it supports chunked upload |
| Author(s) | MarkAHershberger Mdale |
| MediaWiki | 1.16 |
| License | GPL |
| Download | No link |
|
Check usage (experimental) |
|
Contents |
[edit] Download instructions
Check out the code using svn:
$ svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ResumableUpload
[edit] Protocol
The upload protocol consist of initializing the file upload, reading the url from the response and then sending chunks to the server, then finishing the upload and reading the server response. The required api parameters for each phase are described below:
Initialize the upload
'filename' 'comment' 'token' 'filesize'
Uploading Chunks
'offset' 'chunksession' 'chunk'
Finished upload
'offset' 'chunksession' 'chunk' 'done'
[edit] Installation
To install this extension, it should only be necessary to add the following line to your LocalSettings.php file:
require_once( "$IP/extensions/ResumableUpload/ResumableUpload.php" );
To get the full functionality, you will need to install the MwEmbed extension.
