OSS-DocumentScanner icon indicating copy to clipboard operation
OSS-DocumentScanner copied to clipboard

[BUG] File overwritten (without asking for it)

Open drp4positive opened this issue 7 months ago • 1 comments

Which app is your issue for

No response

Version

1.14.5 Build 121

What platform are you using?

No response

OS Version

GrapheneOS 15

What happened?

When exporting an file to the standard export location (the user set up location) a file with the same filename is overwritten. Alas in the app itself the "name" of the file can be the same (e.g. automatically created filename of every new scan like the date: "2025.05.22"), when exporting a file the "name" becomes the "file name" and it is not checked if in the export location a file with the same name already existed.

Background: I like to export all scans and rename them on my desktop pc instead of fiddling on my phone keyboard.

Solution: A checkup could be carried out if a file with the same filename existed already in that export location. If yes, then a "_1" is added to the filename. If that already exist s "_2" and so on could be added. That will make sure that no data loss can occur in the future.

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

drp4positive avatar May 22 '25 14:05 drp4positive

@drp4positive indeed it is an issue. Will look at it

farfromrefug avatar Sep 30 '25 09:09 farfromrefug