Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload Progress #186

Closed
MarvinNazari opened this issue Jul 1, 2016 · 7 comments
Closed

Upload Progress #186

MarvinNazari opened this issue Jul 1, 2016 · 7 comments

Comments

@MarvinNazari
Copy link

Sorry if i ask too many question here, wonder if there is any way we could get a progress when we upload a file like Alamofire upload method. Thanks 👍

@MarvinNazari
Copy link
Author

Is there any news on this?

@ishkawa
Copy link
Owner

ishkawa commented Jul 23, 2016

For now, APIKit does not provide way to get progress of uploading. I'm planning to add a parameter to Session.sendRequest() for this purpose. The call-site will look like:

Session.sendRequest(request, 
    progressHandler: { bytesSent, totalBytesSent, totalBytesExpectedToSend in
        ...
    },
    handler: { result in
        ...
    })

@ishkawa
Copy link
Owner

ishkawa commented Jul 23, 2016

Sorry if i ask too many question here

Any questions are welcome 👍
I think your questions help other developers and inspire me.

@MarvinNazari
Copy link
Author

@ishkawa: any progress on this?

@taish
Copy link

taish commented Mar 21, 2017

I really want it too!

@taish
Copy link

taish commented Mar 22, 2017

@ishkawa: I implement your nice idea 😉
please review it

@ikesyo
Copy link
Collaborator

ikesyo commented Jun 17, 2017

Closed by #234.

@ikesyo ikesyo closed this as completed Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants