How can I view downloaded files in the iPhone's Files and Photos apps using cordova-plugin-advanced-http?

58 Views Asked by At

Even if I download the image URL file with the following code, it cannot be viewed in the iPhone's Files and Photos apps. How do I do that?

await cordova.plugin.http.downloadFile(
            imageUrl,
            {},
            {},
            cordova.file.documentsDirectory + fileName,
            // success callback
            function(entry, response) {
              console.info(entry.name + ' saved successfully.');
            },
            // error callback
            function(response) {
              console.log(response.error);
            }
        );

At least I can see it in the Files app.

0

There are 0 best solutions below