iOS assync background upload?

Started by Simon5 replies26 views
SimonOriginal post
#1

Archived from the Transloadit support forum. Originally posted on April 3, 2014; details may be outdated, see our docs for current behavior. Original thread

We currently discuss how to use transloadit. Our goal is to upload media asynchronous for background iOS uploading.

The developers telling me that they have to use either File/NSData/NSInputStream to be able to use the background functionalities on iOS. The problem they see is that uploading the media via HTTP multipart/form-data is ineffective together with File/NSData/NSInputStream on iOS.

Is it possible to POST binary in the HTTP Body only and adding the template-id, keys, etc. in the HTTP Header?

tim-kos
#2

Hey Simon,

unfortunately we parse and read all the assembly params (template ID, auth, etc.) from the HTTP Body. We do not inspect any http headers in this regard. : /

How is the uploading ineffective this way?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Yury
#3

Hi Tim,

Thanks for clarification. This way of params passing does not result in a performance issue but increases the complexity of our code on iOS side. However we will manage it.

Official Transloadit iOS SDK can not help us here because to upload a file it keeps the whole file in memory which is not acceptable in case of uploading several big files simultaneously.

Best regards,
Yury

tim-kos
#4

Alright, I’ll address this with the SDK developers. Maybe we can come up with a second “mode” or something that does not keep the file in memory.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

tim-kos
#6

Hey Simon,

we’ll let the iOS SDK authors know. Thank you for posting these.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos