-
-
Notifications
You must be signed in to change notification settings - Fork 32
File corruption when overwriting files in export #61
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
Comments
If original XML (A) was 50 KB and the new XML (B) is 20 KB, is the resulting XML 70 KB (A+B) or the first 20 KB of A is replaced with B while the remaining 30 KB of A remain the same (i.e. a 50 KB output)? |
Hi, thanks,
|
I've found out that this is a common problem:
I think this is a stupid default behaviour. Thank you for bringing this to my attention. I'll hopefully release a fix in a couple of days. |
Please let me know if the issue persists in v1.4.1. |
Thanks. I have confirmed that the problem has been resolved in v1.4.1. |
This change shouldn't affect the overwrite dialog because the changed code takes place after the overwrite dialog. |
'Xiaomi Pad 6', when calling ExportFile() with an existing file name, (1) was given without confirmation if the file browser did nothing and OK, and there was an overwrite confirmation when the same file name was selected in the file browser. |
I think this behaviour depends on the device vendor: https://developer.android.com/training/data-storage/shared/documents-files#create-file
|
If NativeFilePicker.ExportFile() overwrites an existing file (XML) with contents of a smaller size, the contents of the existing file will remain and the file will be corrupted.
The text was updated successfully, but these errors were encountered: