i want to create a function that checks if a file already was downloaded from the kinvey backend, so to use them instead of downloading them again and again.
I can't find the loaded files on my ios simulator, so i don't know where to look for them. So the question is as simple as that - where does the download function from the kinvey SDK save the files? (In this Case using Titanium / ios (but android is interesting, too)
A hint would be great. :smile:
almost 4 years ago
The files aren’t saved to disk, but are returned as part of the `promise.then` fulfilled handler. The content of a file is available as follows:
var promise = Kinvey.File.download('file-id');
var file = response._data;
// Use Titanium.Filesystem.File to save the file in disk, if you wish.