Fixed an error in checkBoxes function and uploadContainer "drop" listener regarding file path testing

This commit is contained in:
2025-11-12 18:52:28 +01:00
parent 0f54edb0aa
commit c8cbd4e92a
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function checkBoxes() {
if(isChecked){
//Code to submit the video
var pathTest = fileName.textContent + "";
if(pathTest.endsWith(".mp4", ".mov", ".avi", ".mkv")){
if(pathTest.endsWith(".mp4") || holdy.endsWith(".mov") || holdy.endsWith(".avi") || holdy.endsWith( ".mkv")){
mapFunctions.get("extraction-video-to-audio").function({inputVideoPath: pathTest, outputType:"wav"});
}
} else {