Comments (4)
As far as I know, the showDirectoryPicker() API doesn't allow the retrieval of a full path. The way around this would be to enable "Override browser's download manager" in the extension's options, and in Firefox's settings, enable "Always ask you where to save files".
The extension will use the path that the Save As... dialog uses. If you also enable "Show Add URL(s) window before download" in the extension's options, you'll be able to see the path that gets set and also tweak any of the advanced options.
from httpdownloader.
Hi @erickutcher and thank you.
As far as I know, the showDirectoryPicker() API doesn't allow the retrieval of a full path. The way around this would be to enable "Override browser's download manager" in the extension's options, and in Firefox's settings, enable "Always ask you where to save files".
The extension will use the path that the Save As... dialog uses. If you also enable "Show Add URL(s) window before download" in the extension's options, you'll be able to see the path that gets set and also tweak any of the advanced options.
Thats what i am using until now.
But what i am trying to ovoid is : that firefox auto start downloading in background to my OS drive while i am choosing where to save the file (then stop when Extension's Add URL Popup appear). This is the default behavior of firefox and i cant change it.
The solution is to right click the link and choose "Download link..." option. Thats why i asked you to add a folder picker button to the extension's Add URL popup.
I understand there is API limitation.
from httpdownloader.
Does these links help?
https://stackoverflow.com/a/77132443
https://github.com/ichaoX/ext-file
from httpdownloader.
That first link has the API that's needed, but it's still not possible for it to retrieve the full path. The second link uses the same API, but that extension also has a helper app that runs locally and scans the system for the full path based on the relative path.
There's no clean way to do it unfortunately. One other option is to set the default download directory in the Site Manager. If you're downloading files from a particular website and want to have those downloads in a specific directory, then the Site Manager can do that.
from httpdownloader.
Related Issues (20)
- Filesize Dialog Incorrect Label Color for Dark Mode App HOT 1
- Feature: Show Percentage for when allocating files HOT 1
- Smart "Stuck Part" Detection HOT 1
- Which one should I choose? HOT 5
- [REQUEST] Upload it to Chrome Web Store HOT 1
- The app doesnt update the modified date HOT 2
- The saving issue in the Site Manager HOT 9
- Remove Completed Shortcut and maybe auto trigger? HOT 17
- It is recommended to windowize the pop-up window when right-clicking on the link. HOT 29
- Error on sending / download when using Extension & Add-on HOT 6
- Filename problem - Wrong file already exists message / Add remove double entrys from Add-on Extension URL window HOT 4
- winget link HOT 3
- filename changes with download and has no file extension HOT 1
- cant download from animepahe (HTTP 405) HOT 10
- Resizing of dialog for duplicate file needed (because of translation) HOT 1
- Hope for a Mac version HOT 2
- download says complete but the file is corrupted (chrome extension) HOT 2
- Support for PowerToys Windows Composition and Layout? HOT 3
- Autostart by Default HOT 3
- Http Downloader shows 403 error but download url is correct. HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpdownloader.