haroldtreen / epub-press-clients

📦 Clients for building books with EpubPress.
https://epub.press
GNU General Public License v3.0
587 stars 71 forks source link

tilde ~ in filename causes EpubPress to hang in Brave browser #67

Open jtwill opened 3 years ago

jtwill commented 3 years ago

I have used EpubPress for months now on Firefox and never had any problems using tilde ~ in a filename. But I recently switched to the Brave browser (Chromium-based) and I found the EpubPress hangs if I use a tilde ~ in a filename. It gets all the way to "Done! Pressing Your Epub" with the progress bar at 100% but it never shows success. It times out after a long time (maybe 5 minutes?) and says "Failed Download timed out". Following your debugging tips, I found this error: Unchecked runtime.lastError: Invalid filename.

If I do everything exactly the same but leave the tilde ~ out of the filename, it works normally. And it also works in Firefox even with a tilde ~. I have only seen the problem with Brave and tilde ~ in filename.

OS is Windows 10.