This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,9 @@ function uploadGeneratetoken($args)
263
263
}
264
264
265
265
/**
266
- * Get the offset of the current upload
267
- * @token The upload token for the file
268
- * @return The size of the file currently on the server
266
+ * Get the size of a partially completed upload
267
+ * @param uploadtoken The upload token for the file
268
+ * @return [offset] The size of the file currently on the server
269
269
*/
270
270
function uploadGetoffset ($ args )
271
271
{
Original file line number Diff line number Diff line change @@ -198,11 +198,10 @@ function getOffset($args)
198
198
{
199
199
throw new Exception ('Parameter ' .self ::PARAM_NAME_UPLOAD_TOKEN .' is not defined ' , -150 );
200
200
}
201
- $ uploadToken = $ args [self ::PARAM_NAME_UPLOAD_TOKEN ]; //XXX123.TMP
202
-
203
- $ offset = filesize ($ this ->tmp_directory ."/ $ uploadToken " );
201
+ $ uploadToken = $ args [self ::PARAM_NAME_UPLOAD_TOKEN ];
204
202
205
- $ data ['offset ' ] = $ offset ;
203
+ $ data = array ();
204
+ $ data ['offset ' ] = filesize ($ this ->tmp_directory ."/ $ uploadToken " );
206
205
207
206
return $ data ;
208
207
}
You can’t perform that action at this time.
0 commit comments