|
|
@ -594,6 +594,9 @@ |
|
|
|
function getFileSize(xhr) |
|
|
|
function getFileSize(xhr) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var contentRange = xhr.getResponseHeader('Content-Range'); |
|
|
|
var contentRange = xhr.getResponseHeader('Content-Range'); |
|
|
|
|
|
|
|
if (contentRange === null) { // no content range, then finish!
|
|
|
|
|
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
return parseInt(contentRange.substr(contentRange.lastIndexOf('/') + 1)); |
|
|
|
return parseInt(contentRange.substr(contentRange.lastIndexOf('/') + 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|