Tensai75 / NZBDonkey

The utlimate NZB downloader extension for Chrome and Firefox
https://tensai75.github.io/NZBDonkey/
MIT License
61 stars 6 forks source link

Store nzb outside of browsers default download location #7

Closed daniela-waranie closed 4 years ago

daniela-waranie commented 4 years ago

In my case i want NZBDonkey to save a nzb file to a samba share (other host, not local), while NZBDonkey is running on my Ubuntu 19.10.

In version 0.7.2 there is a warning that one should only enter relative pathes in "Folder for NZB files". So i had to enable "Use save as dialog" and select the folder, when starting to download.

Would be good if this dialog is initialized with last path used. Or even better, that "Folder for NZB files" supports samba shares or at least absolute pathes to samba mount points.

Pathes similar to this should be allowed for "Folder for NZB files": /run/user/1000/gvfs/smb-share:server=mynzbhost.local,share=downloader/nzb

Tensai75 commented 4 years ago

This behaviour of NZBDonkey is due to the browsers security restrictions: Automatic background download of a file is only possible within the browsers default download folder as set in the browser settings. And the download save-as dialog also always starts within the browsers default download folder. As said, these are security restrictions which cannot be overcome by any browser extension.

See also here the description of the "download" method of the web extension API: https://developer.chrome.com/extensions/downloads#method-download

A file path relative to the Downloads directory to contain the downloaded file, possibly containing subdirectories. Absolute paths, empty paths, and paths containing back-references ".." will cause an error.

You either have to mount your samba share within the browsers default download folder or you can make a symbolic link in your browsers download folder to your samba share.