diff --git a/peergos b/peergos index a7767162..485c2708 160000 --- a/peergos +++ b/peergos @@ -1 +1 @@ -Subproject commit a77671629b37353a373858a1ae7e1496c6530fb5 +Subproject commit 485c27081155eae7eb3e756b188b7fd29519f9d0 diff --git a/src/components/sandbox/AppInstall.vue b/src/components/sandbox/AppInstall.vue index a658f0ea..72dfbe5e 100644 --- a/src/components/sandbox/AppInstall.vue +++ b/src/components/sandbox/AppInstall.vue @@ -267,7 +267,7 @@ module.exports = { .thenApply(function(reader) { filesProcessedCounter++; let fup = new peergos.shared.user.fs.FileWrapper.FileUploadProperties(fileProps.name, {get_0: () => reader}, - (fileProps.size_0 - (fileProps.size_0 % Math.pow(2, 32))) / Math.pow(2, 32), fileProps.size_0, false, + (fileProps.size_0 - (fileProps.size_0 % Math.pow(2, 32))) / Math.pow(2, 32), fileProps.size_0, java.util.Optional.empty(), java.util.Optional.empty(), false, true, x => {}); fileUploadList.push(fup); if (filesProcessedCounter == files.length) { diff --git a/src/views/Calendar.vue b/src/views/Calendar.vue index f3fa6874..47d30377 100644 --- a/src/views/Calendar.vue +++ b/src/views/Calendar.vue @@ -920,7 +920,7 @@ module.exports = { } let reader = new peergos.shared.user.fs.AsyncReader.ArrayBacked(bytes); let fup = new peergos.shared.user.fs.FileWrapper.FileUploadProperties(filename, {get_0: () => reader}, - (fileSize - (fileSize % Math.pow(2, 32))) / Math.pow(2, 32), fileSize, false, + (fileSize - (fileSize % Math.pow(2, 32))) / Math.pow(2, 32), fileSize, java.util.Optional.empty(), java.util.Optional.empty(), false, true, updateProgressBar); let fileUploadList = uploadParams.fileUploadProperties[foundDirectoryIndex]; fileUploadList.push(fup); diff --git a/src/views/Drive.vue b/src/views/Drive.vue index 7c8a1fa4..c28ddbd3 100644 --- a/src/views/Drive.vue +++ b/src/views/Drive.vue @@ -2154,7 +2154,7 @@ module.exports = { let reader = new browserio.JSFileReader(file); let java_reader = new peergos.shared.user.fs.BrowserFileReader(reader); let fup = new peergos.shared.user.fs.FileWrapper.FileUploadProperties(file.name, {get_0: () => java_reader}, - (file.size - (file.size % Math.pow(2, 32))) / Math.pow(2, 32), file.size, false, + (file.size - (file.size % Math.pow(2, 32))) / Math.pow(2, 32), file.size, java.util.Optional.empty(), java.util.Optional.empty(), false, overwriteExisting ? true : false, updateProgressBar); let fileUploadList = uploadParams.fileUploadProperties[foundDirectoryIndex]; @@ -2993,7 +2993,7 @@ module.exports = { let manifestReader = new peergos.shared.user.fs.AsyncReader.ArrayBacked(appManifest); let manifestProps = new peergos.shared.user.fs.FileWrapper.FileUploadProperties("peergos-app.json", {get_0: () => manifestReader}, 0, - manifestUint8Array.byteLength, false, true, x => {}); + manifestUint8Array.byteLength, java.util.Optional.empty(), java.util.Optional.empty(), false, true, x => {}); let html = '\n' + '\n' + ' \n' + @@ -3010,7 +3010,7 @@ module.exports = { let indexReader = new peergos.shared.user.fs.AsyncReader.ArrayBacked(appIndexPage); let indexPageProps = new peergos.shared.user.fs.FileWrapper.FileUploadProperties("index.html", {get_0: () => indexReader}, 0, - indexUint8Array.byteLength, false, true, x => {}); + indexUint8Array.byteLength, java.util.Optional.empty(), java.util.Optional.empty(), false, true, x => {}); let folderUPList = []; let appFolderProps = new peergos.shared.user.fs.FileWrapper.FolderUploadProperties( peergos.client.JsUtil.asList([appName]), peergos.client.JsUtil.asList([manifestProps]));