Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3959] Windows: httpclient's file property doesn't work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-07-27T17:32:40.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterZakhar Zhuravlev
AssigneeShak Hossain
Created2016-06-29T18:09:10.000+0000
Updated2016-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

Comments

No comments

JSON Source