You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/09 14:03:48 UTC

[GitHub] [cordova-plugin-file] arihantdaga edited a comment on issue #374: Media scanner after creating file

arihantdaga edited a comment on issue #374:
URL: https://github.com/apache/cordova-plugin-file/issues/374#issuecomment-671055815


   Noh, But when i am using the dataStorage directory like this - 
   `const entry = await fileTransfer.download(url, this.file.externalDataDirectory + '/Download/' + options.name);`
   It goes into `file:///storage/emulated/0/Android/data/com.feturtles.theopendiaries/files/Download/2efd2aa10701f6f493dd3d0ab77325b8_1595875789984.jpeg`
   
   But i want to store it into Downloads directory or Pictures/myAppName directory. 
   I tried using  externalRootDirectory + '/Download' instead, but then i am getting permission error, even after requesting permission for write_storage. 
   
   I have searched on Internet, the whole day and i haven't yet found how to perfectly download an image to the phone.. :( 
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org