Browse Source

Updated post upload mode cutoff

Toby Chui 3 years ago
parent
commit
a4f45cff08

BIN
documents/T-shirt/20220704110821.png


BIN
documents/T-shirt/20220704110835.png


BIN
documents/T-shirt/20220704110935.png


BIN
documents/T-shirt/design-rev1.png


BIN
documents/T-shirt/design-rev1.psd


+ 2 - 1
web/SystemAO/file_system/file_explorer.html

@@ -1178,6 +1178,7 @@
             let lowMemoryMode = true;   //Upload with low memory mode channel
             let largeFileCutoffSize = 8192 * 1024 * 1024; //Any file larger than this size is consider "large file", default to 8GB
             let uploadFileChunkSize = 1024 * 512; //512KB, 4MB not working quite well on slow network
+            let postUploadModeCutoff = 25 * 1048576; //25MB, files smaller than this will upload using POST Mode
 
             //File Sharing related
             let shareEditingObject = ""; 
@@ -4656,7 +4657,7 @@
         let uploadBufferedRefreshTimer;
        
         function uploadFile(file, uuid=undefined, targetDir=undefined) {
-            if (file.size > 4194304 && lowMemoryMode){
+            if (file.size > postUploadModeCutoff && lowMemoryMode){
                  /*
                     Low Memory Upload Mode
                 */