Hello All,
In my app, i need to uploaded the video to my server from iPad, this functionality works but when i am trying to upload the 300+ MB video HTTPClient fails...with memory error,
My questions are - Does xhr.send({video:fileobj), why Titanium tries to allocate whole file memory at once.
HttpPost.uploadFile (iPad). file:[object TiFilesystemFile] [INFO] : TiRemoteApp(228,0x2d95000) malloc: *** mach_vm_map(size=312246272) failed (error code=3) [INFO] : *** error: can't allocate region [INFO] : *** set a breakpoint in malloc_error_break to debug [ERROR] : Script Error { [ERROR] : column = 5331; [ERROR] : line = 1; [ERROR] : message = "*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]"; [ERROR] : sourceURL = "file:///var/mobile/Applications/3F8C0CFA-DB5B-4C95-B107-5AB600D52F53/TiRemoteApp.app/ui/common/core/httpMain.js"; [ERROR] : stack = "[native code]\nsuccess@file:///var/mobile/Applications/3F8C0CFA-DB5B-4C95-B107-5AB600D52F53/TiRemoteApp.app/ui/common/core/httpMain.js:1:5331"; [ERROR] : }- How to do multipart uploading in Titanium for iPad?
Thanks,