Skip to content

Conversation

@crazytonyli
Copy link
Contributor

The current progress tracking is only implemented for the wp/v2/media endpoint. This PR expands the progress tracking to all API calls.

The existing uploadMedia API is kept. Its implementation also showcases how the new, more general API fulfill(progress:withApiCall:) is used.

@crazytonyli crazytonyli requested a review from jkmassel October 28, 2025 10:36
Copy link
Contributor

@jkmassel jkmassel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially wasn't seeing progress in the example app when uploading images. This seems to be a URLSession issue – it just doesn't emit progress events very frequently for smaller files. When I tried with a 20MB images, I got the expected behaviour – more frequent updates over time.

@jkmassel jkmassel merged commit 0a7c437 into trunk Oct 31, 2025
22 checks passed
@jkmassel jkmassel deleted the generic-progress-tracking branch October 31, 2025 18:44
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

Successfully merging this pull request may close these issues.

3 participants