You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UploadRequest has the same progress as DataRequest, as it's a subclass. I don't tend to give UploadRequest specific examples because it has exactly the same interface as DataRequest aside from some upload specific functionality. I guess I can make most references to DataRequest read DataRequest and UploadRequest though.
It's working correctly, which is why many of my progress examples include throwing the uploadProgress() into its own Task. for await suspends awaiting new values and only completes the loop when progress is complete. Unfortunately, since you suspend before actually starting the request, no progress values are ever received and the code is suspended forever. For progress I recommend still using the older closure APIs.
Problem
The current docs around swift concurrency are unclear. How do you get the progress from AF.upload(file, to: url)
Feature Request
Please update the docs with an upload example.
Value to Alamofire
This will make the new concurrency more accessible to new developers like myself!
The text was updated successfully, but these errors were encountered: