Index: trunk/extensions/ResumableUpload/ApiResumableUpload.php |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | $required[] = 'filesize'; |
158 | 158 | break; |
159 | 159 | case ResumableUploadHandler::CHUNK: |
160 | | - $required[] = 'byteoffset'; |
| 160 | + $required[] = 'offset'; |
161 | 161 | $required[] = 'chunksession'; |
162 | 162 | // The actual file payload: |
163 | 163 | $required[] = 'chunk'; |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | 'ignorewarnings' => false, |
182 | 182 | 'chunksession' => null, |
183 | 183 | 'chunk' => null, |
184 | | - 'byteoffset' => null, |
| 184 | + 'offset' => null, |
185 | 185 | 'done' => false, |
186 | 186 | 'watchlist' => array( |
187 | 187 | ApiBase::PARAM_DFLT => 'preferences', |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | 'ignorewarnings' => 'Ignore any warnings', |
206 | 206 | 'chunksession' => 'The session key, established on the first contact during the chunked upload', |
207 | 207 | 'chunk' => 'The data in this chunk of a chunked upload', |
208 | | - 'byteoffset' => 'The byte offset range of the uploaded chunk, relative to the complete file', |
| 208 | + 'offset' => 'The start offset of the current chunk in bytes', |
209 | 209 | 'done' => 'Set to 1 on the last chunk of a chunked upload', |
210 | 210 | |
211 | 211 | 'sessionkey' => 'Session key that identifies a previous upload that was stashed temporarily.', |
Index: trunk/extensions/ResumableUpload/README |
— | — | @@ -7,3 +7,9 @@ |
8 | 8 | |
9 | 9 | This extension needs client JavaScript support. |
10 | 10 | This can be done with the HTML5 slice api or using the Firefogg extension. |
| 11 | + |
| 12 | + |
| 13 | +To install this extension, add the following line to your LocalSettings.php file: |
| 14 | + |
| 15 | +require_once( "$IP/extensions/ResumableUpload/ResumableUpload.php" ); |
| 16 | + |