cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Axel.Nenn...@telekom.de>
Subject FileTransfer download null-target
Date Thu, 05 Dec 2013 09:57:08 GMT
Hi,

I think a developer who uses FileTransfer's download does not always care to which file the
remote content is downloaded to.

I suggest to allow a target parameter of "null" to denote some temporary file.
https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/android/FileTransfer.java#L180

In the success callback the developer gets a FileEntry and can do with it whatever is needed
e.g. delete it after use.

Do you think this is usefull for cordova user?

- Axel

https://cordova.apache.org/docs/en/2.5.0/cordova_file_file.md.html#FileTransfer_download

Mime
View raw message