Open kevinmamaqi opened 6 years ago
I think it is not possible at the moment, it will respond with the data only ?
https://github.com/kevva/download/blob/99ac4284cfae629ab9b392a8434c1812b8bbd779/index.js#L106-L118
If you change the line 112, you can have your filename
.then(() => filename);
or something like:
.then(() => { return { uri: uri, filename: filename, data: data } } )
But howto implement this in the right way.
Is it possible to get the filename of the downloaded file without defining it previously?