Add filesize in media item view controlller#22984
Add filesize in media item view controlller#22984hoangatuan wants to merge 1 commit intowordpress-mobile:trunkfrom
Conversation
|
Hey, @hoangatuan. Thank you for addressing it, as it's been an outstanding item for a long time. However, it will require a bit more work. The issue is that the current There is an open PR to add size to WordPresssKit wordpress-mobile/WordPressKit-iOS#647. Unfortunately, the site it returns is a pre-formatted string so there is no way to store it in |
| } | ||
|
|
||
| var fileSize: String? { | ||
| guard let fileSizeInBytes = media.filesize as? Int else { |
|
I'm going to close it for now because the PR appears to be stale as, as pointed out in the following comment it will need to be updated when the API is updated. I think it might be worth tying it to the wordpress-rs, cc @jkmassel . |
Fixes #22737
To test:
Regression Notes
PR submission checklist:
RELEASE-NOTES.txtif necessary.Testing checklist:
Attachments