Reputation: 134
I have downloaded Sample Project for file upload and download but it does not work file download for ios and android. Is the bug still going on for this relase also? If not could you share a working code for picture download sample code?
Upvotes: 1
Views: 266
Reputation: 121
You can use following codes for file download.It works fine for me.Also, you can reach sample codes from the guides.
var webClientDownload = new SMF.Net.WebClient({
url : "http://services.smartface.io/File/Download/javascript.js",
httpMethod : "GET",
autoFileSave : true,
onSyndicationSuccess : function (e) {
alert("downloaded Javascript.js");
},
onServerError : function (e) {
alert("An error occured");
},
responseHandling : SMF.Net.ResponseHandling.forceFile
});
function Page1_cntDownload_OnPressed(e) {
webClientDownload.run();
}
Upvotes: 1