Skip to content
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

Autodetect uploaded document type #4666

Open
tpluscode opened this issue Mar 26, 2024 · 2 comments
Open

Autodetect uploaded document type #4666

tpluscode opened this issue Mar 26, 2024 · 2 comments
Labels
⭐️ Enhancement New feature or request

Comments

@tpluscode
Copy link

Is your feature request related to a problem? Please describe.

When uploading PDF documents one-by-one, it is quite annoying that the type needs to be switched to PDF every time. While some other formats all share the XML or JSON general type, PDFs can hardly be confused with anything else. It would be nice it weren't necessary to select the format every time.

Currently, keeping the default selection "Plain text" usually returns an error about "too many sentences" or something like that

Describe the solution you'd like

Having selected a PDF document to import, or multiple documents all of which are PDFs, the format would automatically change to match the type

Describe alternatives you've considered

An "autodetect" option, selected as default "format" would also work. That could potentially be more useful, being able to distinguish the other formats which are all JSON, etc, albeit requiring more work

@reckart
Copy link
Member

reckart commented Mar 27, 2024

You can select multiple files in the upload dialog. Typically, you can upload up to 999 files or whatever limit your browser imposes.

@tpluscode
Copy link
Author

Yes, I do mention that too. I only meant that I usually have only one document to upload at a time

@reckart reckart added the ⭐️ Enhancement New feature or request label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐️ Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants