Phone book file Download to device - which way to take the device?

I studied how to upload a file to my native file system via a telephony URL. Then I read about this method:

http://docs.phonegap.com/en/1.4.1/phonegap_file_file.md.html#FileTransfer_download

It should allow you to save files directly through the device URL. But he needs the specified goal to save the file.

target - Full path of the file on the device

What would be best to choose here, so the file is not just hidden in a folder, but accessible. What are the differences between Android and ios (maybe a Windows phone)?

TL DR: where to save the downloaded file with telephone connection?

Thanks in advance!

+6
source share
1 answer

Here is a list of mobile paths from the w3c standard: http://wiki.phonegap.com/w/page/35605874/Planning%3A%20File%20API

and here is how you use it with telephone service: http://docs.phonegap.com/en/1.4.1/phonegap_file_file.md.html#LocalFileSystem

so you need to request the onSuccess file system you can use the path

here's a complete example: Writing and reading a file in telephone records

+5
source

Source: https://habr.com/ru/post/908891/


All Articles