danny0838 / webscrapbook

A browser extension that captures web pages to local device or backend server for future retrieval, organization, annotation, and edit. This project inherits from legacy Firefox add-on ScrapBook X.
Mozilla Public License 2.0
850 stars 118 forks source link

Cannot start download because of unspecified illegal characters in file name #389

Open ninalanyon opened 1 month ago

ninalanyon commented 1 month ago

Firefox 127.0 (64 bit), WSB 2.9.1

Capture dialog:

Capturing (document) [7] https://similarworlds.com/social/blogs/5035279-Ninas-Blog-Tuesday-18th-June-2024 ... Saving data... Fatal error: Failed to download "WebScrapBook/data/similarworlds.com/social_blogs5035279-Ninas-Blog-Tuesday-18th-June-2024//_/Nina's Blog - Tuesday 18th June 2024 Tuesday 18th June 2024, 1041 Just spent an hour leafing... Blogs/index.html": Unable to start downloading: filename must not contain illegal characters

The URL of the page I am trying to capture is:

https://similarworlds.com/social/blogs/5035279-Ninas-Blog-Tuesday-18th-June-2024

Using File|Save As works but typically only after retrying.

The problem occurs with all of my blog pages, or at least all those I have recently tried. Perhaps the error message should include the offending string.

danny0838 commented 1 month ago

This is an issue of Firefox > 126 (details) when the folder name of a download contains a . and a space after it.

Some ways to workaround before Firefox is Fixed:

  1. use a browser other than Firefox > 126
  2. do NOT set Save captured data to: Scrapbook folder
  3. do NOT set Save captured data as: Folder
  4. config a filename without the affected char(s)
ninalanyon commented 1 month ago

What worked for me was just dropping the %title% from the "Filename to save:" setting. I changed from:

%source-host%/%source-pathname%/%source-search%/%source-hash%/%title%

to

%source-host%/%source-pathname%/%source-search%/%source-hash%

Thanks for the suggestions.