vasani-arpit / cordova-plugin-downloadmanager

A Cordova plugin to download file in system's default download manager
44 stars 38 forks source link

Feature/file name #11

Closed Arahvin closed 4 years ago

Arahvin commented 4 years ago

This repo has been idle for a while, but I recently needed this for a project I was working on and felt the need to change it so you can pass a file name because we are using an API that returns files instead of urls pointing directly at files. This way you can decide to rename the file that is downloaded even if you are pointing at a specific file url.

If you deem it necessary, I can change it a bit to allow a null file name, in which case, the plugin will use the one from the url as you had previously.