Closed zhelenskiy closed 3 months ago
Hi, Thanks for opening this issue, maybe keeping a reference to the original path in KmpFile for iOS should fix this?
By the way why do you need to create a temporary file?
Here's the full discussion: #54
I'm using iOS PHPicker
and it return an NSURL
valid only inside the picker lambda so you can't keep a reference of the file and use it later to upload or something, that's why we need the temporary file so we can keep using it later.
It's possible to store the NSData
instead of NSURL
but it's not ideal, we only need to get NSData
or ByteArray
when we have to, we shouldn't keep it in the memory for so long.
How am I expected to save to the original file then?
As I said, I will add a reference to the original file path for iOS: KmpFile.originalPath
something like that.
This should be fixed in 0.5.0
, you don't need to change anything in your code.
The change introduced by 0.4.1 after 0.4.0 breaks the following use case:
Expected behaviour (0.4.0):
Actual behaviour: