Giter Site home page Giter Site logo

Comments (4)

erickutcher avatar erickutcher commented on August 22, 2024

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.

Wassss avatar Wassss commented on August 22, 2024

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.

Wassss avatar Wassss commented on August 22, 2024

Does these links help?
https://stackoverflow.com/a/77132443
https://github.com/ichaoX/ext-file

from httpdownloader.

erickutcher avatar erickutcher commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.