[AC-3959] Windows: httpclient's file property doesn't work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-07-27T17:32:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Zakhar Zhuravlev |
Assignee | Shak Hossain |
Created | 2016-06-29T18:09:10.000+0000 |
Updated | 2016-07-27T17:32:40.000+0000 |
Description
try example code from your docs: http://docs.appcelerator.com/platform/latest/#!/guide/File_Uploads_and_Downloads
var xhr = Titanium.Network.createHTTPClient({
onload: function() {
Ti.API.info('PDF downloaded to applicationDataDirectory/test.pdf');
},
timeout: 10000
});
xhr.open('GET','http://www.appcelerator.com/assets/The_iPad_App_Wave.pdf');
xhr.file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'test.pdf');
xhr.send();
xhr.file property doesn't work
No comments