diff --git a/renderer/pages/index.tsx b/renderer/pages/index.tsx index c531765..d022327 100644 --- a/renderer/pages/index.tsx +++ b/renderer/pages/index.tsx @@ -481,6 +481,11 @@ const Home = () => { resetImagePaths(); } + const formatPath = (path) => { + //USE REGEX TO GET THE FILENAME AND ENCODE IT INTO PROPER FORM IN ORDER TO AVOID ERRORS DUE TO SPECIAL CHARACTERS + return path.replace(/([^/\\]+)$/i, encodeURIComponent(path.match(/[^/\\]+$/i)[0])) + } + const allowedFileTypes = ["png", "jpg", "jpeg", "webp"]; const allowedVideoFileTypes = ["webm", "mp4", "mkv"]; @@ -620,7 +625,7 @@ const Home = () => { { setDimensions({ @@ -677,7 +682,7 @@ const Home = () => {

Original { Upscayled