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

[BUG] Sharing images not working multiple images

Open rightsaidfred99 opened this issue 1 month ago • 5 comments

Which app is your issue for

Document Scanner

Version

Latest as of Octob 27

What platform are you using?

Android

OS Version

16

What happened?

  1. Select multiple documents within OSS Document Scanner
  2. Share Images
  3. Share
  4. Say if 12 items are selected it goes to export 12 items but only 6 get saved. It seems to use Image1 as the filename for 6 images so it overwrites itself

Relevant log output


Code of Conduct

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

rightsaidfred99 avatar Oct 27 '25 00:10 rightsaidfred99

Saving to gallery option uses a different jpeg filename, so all 12 images will get saved if I save to gallery, then from the gallery share the images

rightsaidfred99 avatar Oct 27 '25 00:10 rightsaidfred99

@rightsaidfred99 i am not use i understand. The issue is while sharing (for other apps) or exporting (saving images to memory)? Because if you use share to share with other apps there is no saving and filename (like sharing by sms). Could you detail?

farfromrefug avatar Oct 28 '25 20:10 farfromrefug

Sure,

Here are repro instructions

  1. Open App
  2. Select multiple documents already scanned
  3. 3 Dot menu > Share Images
  4. Share (Share again)
  5. Point to an SMB or local storage

That's where the error begins. It's the second Share where the filenames seem to overwrite each other so you can't seem to share multiple images this way

rightsaidfred99 avatar Oct 29 '25 21:10 rightsaidfred99

@rightsaidfred99 ok i think i see the issue. But how do you get that smb/local storage entry in the share menu? Does not work for me. I am thinking about this and i dont think you should use share for that but export. Indeed sharing is meant to create temporary files for sharing with mail, sms ... And the base name is the same for each share, which explains the overwrite on the next share. But i am not 100% sure i should to try and find a fix for this because sharing does not seem like the right tool here. If you use export it will use unique file names

farfromrefug avatar Nov 02 '25 20:11 farfromrefug

I'm not sure what's going on, but I have Share 1 option, Then Share 2 option comes up if I want to share to local storage. That's when the rename issue comes in

Image Image

rightsaidfred99 avatar Nov 03 '25 22:11 rightsaidfred99