Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FEATURE] Multi-image import: single-file restriction and silent failure on multi-select #84

Description

@piknockyou

Is your feature request related to a problem?

The import flow currently only accepts one image at a time. When a third-party picker (e.g. MiXplorer) returns multiple URIs, the app silently returns to the camera screen with no error.

Describe the Desired Solution

Android's file picker supports multi-select via EXTRA_ALLOW_MULTIPLE = true on the ACTION_OPEN_DOCUMENT intent:

val intent = Intent(Intent.ACTION_OPEN_DOCUMENT).apply {
    type = "image/*"
    putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true)
}

The result handler then reads multiple URIs from data.clipData (vs. single URI from data.data). These can feed directly into the existing multi-page flow.

Describe Alternatives You've Considered

OSS Document Scanner handles MiXplorer multi-select correctly, confirming this is not an Android or picker limitation.

Use Case

Importing an already-photographed multi-page document consisting of separate image files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions