You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/23 04:33:47 UTC

[GitHub] [cordova-plugin-file-transfer] kt-at-cbx opened a new issue #262: Can I not provide a file name when downloading?

kt-at-cbx opened a new issue #262:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/262


   
   
   I am using FileTransfer plugin to download a file. But I want to keep the original filename of the file but not a one I assigned. Can I keep the original file name when downloading it?
   
   ie. I don’t want to change `'file.pdf'` manually in below code:
   
   `fileTransfer.download(url, this.file.dataDirectory + 'file.pdf')`
   
   Thanks
   
   PS. My url will not contain any file name (will be something like: `https://example.com/<id>?sp=r&st=2020-07-22&sig=<other-id>&srt=o&ss=b` ) so it is quite not possible to get the filename from the url. But if open the link in browser, I can download it with a meaningful filename.
   


----------------------------------------------------------------
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] breautek closed issue #262: Can I not provide a file name when downloading?

Posted by GitBox <gi...@apache.org>.
breautek closed issue #262:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/262


   


----------------------------------------------------------------
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] breautek commented on issue #262: Can I not provide a file name when downloading?

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #262:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/262#issuecomment-683204504


   It's up to your application to decide the filename. The file transfer plugin doesn't really have an opinion on this.
   
   Common practices are:
   - Allow the user to enter a filename
   - Send the filename from the server
   - Infer the filename based on file being received


----------------------------------------------------------------
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] elvisgraho commented on issue #262: Can I not provide a file name when downloading?

Posted by GitBox <gi...@apache.org>.
elvisgraho commented on issue #262:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/262#issuecomment-676022663


   Download first and then change the filename based on metadata?


----------------------------------------------------------------
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org