Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] DeviceFeatures\SaveFile webblock: how to save file in a different directory?

$
0
0
Hello Pedro.

The way that the SaveFile WebBlock is implemented won’t allow you to provide that kind of paths. It just expects the Filename. To achieve what you want you’ll have to change the SaveFile javascript to use more sophisticated logic. One example is using the resolveLocalFileSystemURL
 
window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, function(dir) { });
 
For more examples you’ll have to take a closer look at the Cordova File Plugin – Where To Store Files
 
Thanks

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>