New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception while saving file Reply already submitted #14
Comments
Okay, I will look into it. |
Looking forward to this! |
Same, just experienced this issue, while testing mobile application. I think this is the only package I found that makes it easy to store fines. @pymq Do you know any others/alternatives. The issue is related to a file and saving it, then proceeding to upload another file. Perhaps, it hasn't fully completed the first operation of saving, or perhaps, it's related to the cache and hasn't been cleaned after it's completed. There should be no link between first operation and any other future ones. |
@AmanuelYosief Unfortunately, no, I'm still facing this issue. Postponed this for a while. I tried with other libraries, but they conflict somehow. |
Can we connect on reddit or some direct chat application? @pymq @AmanuelYosief |
I get the same exception (on Android) using the |
Can you share a piece of your code so I can reproduce the issue, also, can you please elaborate on the part "if the requestCode is correct one" since in not a very experienced native developer, I'm just putting my hands into native part |
@pymq @incrediblezayed
|
I just added a check to see if requestCode is equal to SAVE_FILE in the onActivityResult() method:
|
if this works, where would I include it?, how does it work? and does it only affect the file_saver packages. |
Hi, I'll fix the issue and merge it by tomorrow, please wait till then if you can, Thank You |
The issue is fixed, thank you all so much, especially @Iucone, whose trick worked and everything seems fine now, use version 0.1.0 |
I tested the new version, it worked well for me, thank you all! |
Worked, this required updating to version 0.1.0 |
Hi, thanks for this package!
I have 2 functions: one for saving file (export) and another for loading file (import). Loading files is implemented with file_picker library. If I call import many times I have no errors, the same with export. But if I call import and then export (and vise-versa), app crashes (see logs below).
I have zero knowledge of android development, all I can say from logs is that
result.success
on android side is called twice, probably because of not closed activity (?).I also tried with flutter_file_dialog for importing, still crashes at file_saver level.
Code samples:
Crash log when first saving and then loading file
Crash log when first loading and then saving file
Reproduced with android 8.1 and 11, file_saver library version b0b83c6 and 0.0.10.
The text was updated successfully, but these errors were encountered: