Added Verenas function to have a preview image of the selected video file

This commit is contained in:
2025-11-17 15:02:22 +01:00
parent ada231cd28
commit f8fb71e146
4 changed files with 92 additions and 72 deletions
+33
View File
@@ -22,7 +22,9 @@ uploadContainer.addEventListener("drop", (e) => {
const files1 = e.dataTransfer.files;
handleFiles(files1);
generateThumbnail(filePath);
}
} catch (error) {
console.log("Error in renderer.js with the listerner for the drop function");
}
@@ -48,3 +50,34 @@ language_option.addEventListener('change', (e)=>{
}
});
videoUpload.addEventListener("change", () => {
try {
activateSubmitBtn(videoUpload.files.length > 0);
} catch (error) {
console.log(error);
}
});
//listener for the file explorer search when something got selected
videoUpload.addEventListener('change', () => {
try {
handleFiles(videoUpload.files);
} catch (error) {
console.log("Error in manualBtn EventListener change");
console.log(error);
}
});
//listener for the file explorer search
manualUploadBtn.addEventListener('click', () => {
try {
videoUpload.click();
} catch (error) {
console.log("Error in manualBtn EventListener click");
console.log(error);
}
});