Closed santiwanti closed 2 weeks ago
It looks great thank you! I'm going to test it on iOS.
If you tried to use the iOS simulator, with the image picker, and you choose a default image of flowers, it will crash due to an emulator bug: https://stackoverflow.com/a/74760585/7947225
If you tried to use the iOS simulator, with the image picker, and you choose a default image of flowers, it will crash due to an emulator bug: https://stackoverflow.com/a/74760585/7947225
That was probably it. I will try to see if I can test it with a different image or a downloaded file so I also know for next time.
Confirmed that was the issue. Using a downloaded pdf I had no issues
Added
fun getSize(): Long?
toPlatformFile
. This allow accessing the size of a file without having toreadBytes
first.