Undo constraint changes for file uploads
@@ -32,6 +32,8 @@ var loading_metadata_alert =
'<span class="sr-only">Loading...</span>' +
'</div>';
+const MAX_FILE_SIZE = 1024; // MB
+
function getCurrentPath() {
return pathLog[pathLogIndex];
}
@@ -199,6 +201,8 @@ function updateSelectionMenuContext() {
uiActionStates[val] = $.extend(true, {}, initActionState); // Deep copy
});
+ var maxSize = MAX_FILE_SIZE * 1024 * 1024; // convert MB to Bytes
+
if (selected.length > 1) {
// ------------- Multiple files selected -------------
uiActionStates.rename.disabled = true;
@@ -1330,9 +1334,9 @@ $(document).ready(function () {
paramName: "files", // The name that will be used to transfer the file
clickable: ".upload-toggle",
previewsContainer: "#previews", // Define the container to display the previews
+ maxFilesize: MAX_FILE_SIZE, // MB
acceptedFiles: acceptedFiles,
maxFiles: allowMultiple,
- maxFilesize: 100000, // Provided in MB. Arbitrary large size (100 GB)
autoProcessQueue: true,
uploadMultiple: true,
parallelUploads : 10,
