Commit 7a8f5b0f authored by Eric Seigne's avatar Eric Seigne
Browse files

ios pour l'instant le testchunk provoque un bug d'upload, on l'active que pour android

parent 3c263a9b
......@@ -359,12 +359,18 @@ function newResumable(ajaxURL, result, filename) {
//Note/WARNING : ne pas passer en dessous de 40.000 ms de xhrTimeout sinon ça déconne complet
//tests 4G eric@garage ...
let tChunks = false;
if (window.cordova.platformId == "android") {
//avec android ca passe :-)
tChunks = true;
}
globalResumable = new Resumable({
// Use chunk size that is smaller than your maximum limit due a resumable issue
// https://github.com/23/resumable.js/issues/51
chunkSize: 1 * 128 * 1024, // 128Ko ? 512Ko ?
chunkSize: 1 * 512 * 1024, // 128Ko ? 512Ko ?
simultaneousUploads: 4,
testChunks: true,
testChunks: tChunks,
throttleProgressCallbacks: 1,
chunkRetryInterval: 500,
maxChunkRetries: 4,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment