http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88246

Revision: 88246
Author:   j
Date:     2011-05-16 15:55:47 +0000 (Mon, 16 May 2011)
Log Message:
-----------
ResumableUpload, its just offset not byteoffset, add installation note to README

Modified Paths:
--------------
    trunk/extensions/ResumableUpload/ApiResumableUpload.php
    trunk/extensions/ResumableUpload/README

Modified: trunk/extensions/ResumableUpload/ApiResumableUpload.php
===================================================================
--- trunk/extensions/ResumableUpload/ApiResumableUpload.php     2011-05-16 
15:44:05 UTC (rev 88245)
+++ trunk/extensions/ResumableUpload/ApiResumableUpload.php     2011-05-16 
15:55:47 UTC (rev 88246)
@@ -156,7 +156,7 @@
                                $required[] = 'filesize';
                                break;
                        case  ResumableUploadHandler::CHUNK:
-                               $required[] = 'byteoffset';
+                               $required[] = 'offset';
                                $required[] = 'chunksession';
                                // The actual file payload:
                                $required[] = 'chunk';
@@ -180,7 +180,7 @@
                        'ignorewarnings' => false,
                        'chunksession' => null,
                        'chunk' => null,
-                       'byteoffset' => null,
+                       'offset' => null,
                        'done' => false,
                        'watchlist' => array(
                                ApiBase::PARAM_DFLT => 'preferences',
@@ -204,7 +204,7 @@
                        'ignorewarnings' => 'Ignore any warnings',
                        'chunksession' => 'The session key, established on the 
first contact during the chunked upload',
                        'chunk' => 'The data in this chunk of a chunked upload',
-                       'byteoffset' => 'The byte offset range of the uploaded 
chunk, relative to the complete file',
+                       'offset' => 'The start offset of the current chunk in 
bytes',
                        'done' => 'Set to 1 on the last chunk of a chunked 
upload',
                
                        'sessionkey' => 'Session key that identifies a previous 
upload that was stashed temporarily.',

Modified: trunk/extensions/ResumableUpload/README
===================================================================
--- trunk/extensions/ResumableUpload/README     2011-05-16 15:44:05 UTC (rev 
88245)
+++ trunk/extensions/ResumableUpload/README     2011-05-16 15:55:47 UTC (rev 
88246)
@@ -7,3 +7,9 @@
 
 This extension needs client JavaScript support.
 This can be done with the HTML5 slice api or using the Firefogg extension.
+
+
+To install this extension, add the following line to your LocalSettings.php 
file:
+
+require_once( "$IP/extensions/ResumableUpload/ResumableUpload.php" );
+


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to