diff --git a/Cmd b/Cmd index 90c2e2d..12a9d5e 100755 Binary files a/Cmd and b/Cmd differ diff --git a/html/download.html b/html/download.html index 86fb918..925e352 100644 --- a/html/download.html +++ b/html/download.html @@ -133,6 +133,11 @@ // Get file extension var fileExt = value.Name.split('.').pop(); + // To make sure a file is less than 100 mb to preview and is not a video file. + if (value.Size > 1000000 && fileExt != "mp4" && fileExt != "mov" && fileExt != "wmv" && fileExt != "webm" && fileExt != "mpeg-2") { + OtherFiles.remove() + } + if (fileExt === "mp4") { // Ensure browser is not Safari if(navigator.userAgent.indexOf("Safari") === -1)