If file's URI has no filename and(or) extension at the end
(e.g. https://.../api/reference/financial, or https://.../api/files/ddf57hghm54s64s...), the downloaded file won't be saved properly.
It won't have a real filename, but smth like "downloadfile.bin" on android and last part of save-dir on IOS (e.g save-dir === "/app/files" -> filename === "files").
That seems I have to set save-dir with a real filename at the end ("app/files/filename.ext").
But how can I do this if I didn't fetch the file yet?! :(
If the URI-to-file includes a filename, file saves correctly on android, but still not (like described above) on IOS..
If file's URI has no filename and(or) extension at the end (e.g.
https://.../api/reference/financial
, orhttps://.../api/files/ddf57hghm54s64s...
), the downloaded file won't be saved properly. It won't have a real filename, but smth like "downloadfile.bin" on android and last part of save-dir on IOS (e.g save-dir === "/app/files" -> filename === "files").That seems I have to set save-dir with a real filename at the end ("app/files/filename.ext"). But how can I do this if I didn't fetch the file yet?! :( If the URI-to-file includes a filename, file saves correctly on android, but still not (like described above) on IOS..
I just don't know how to resolve this.. :(
My code: