how can i load files as PlatformFile Type from file path and display them for edit purpose? #67
-
i have a path like: https://mydomains.com/medias/files/file.pdf or https://mydomains.com/medias/files/image.png Now i have to load and display them for edit.
this is the error that occurred: it's about of this line: Is there an other way to do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
problem solved... thanks!
the second function is used to return file as PlatformFile type:
you can use this last one to convert your path to a PlatformFile data type. `PlatformFile? pfile;
this is the first solution I've found to solve this. maybe there is a best way to do that. |
Beta Was this translation helpful? Give feedback.
problem solved... thanks!
solution
as my file path is an URL, i created this function based on this answer from Stackoverflow: https://stackoverflow.com/a/59589480
the second function is used to return f…