I want to develop an app in which I may need to support resumable file upload. Is there any way to support resumable file upload.Please note that I may queue up file uploads also.
I'm using AFNetworking. Server: IIS.
If possible, please provide a robust solution to it. I'm open for both (server-client side) solutions.
For resumable uploads magic must go on server-side. The servers I've use for developing this uploads were using tusd library https://github.com/tus/tusd
I'm sorry but I can't help you much more on server side.
On iOS you have to implement just three HTTP Requests
A HTTP request to generate a file identifier. You should retrieve the file's identifier and associate it to your file (In core data for example).
A HTTP GET request passing the file's identifier to find the file's offset (The last byte of the file received on server).
A HTTP POST request to upload the file. If you are handling with large files, you must use a NSInputStream in order to not allocating memory.
Also you have to implement NSURLSessionTaskDelegate to provide the streamRequest a Body:
Basically it is all you'll need on your client. Then you will have to set different headers or request body depending on the server implementation