Bug 490327 - KDE File Picker spawned from Firefox using xdg-portals cannot submit more than 1071 files to add to an HTML file input
Summary: KDE File Picker spawned from Firefox using xdg-portals cannot submit more tha...
Status: REPORTED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 21:40 UTC by Daktyl
Modified: 2024-09-12 12:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error message when opening large number of files (385.92 KB, image/png)
2024-07-15 21:40 UTC, Daktyl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daktyl 2024-07-15 21:40:24 UTC
Created attachment 171692 [details]
Error message when opening large number of files

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
After forcing Firefox to use xdg-portals for it's file picker, if you select more than 1071 files using an HTML input[type=files] and hit "Open", you will receive a "file cannot be found" error, with a truncated file name. Using Firefox's built-in GTK file picker I was able to submit more than 4400 files successfully.

STEPS TO REPRODUCE
1. Enable xdg-portals in Firefox by setting `widget.use-xdg-desktop-portal.file-picker` to 1
2. Navigate to any site that opens a file picker
3. Select more than 1071 files
4. Try to submit those files by clicking "Open"

OBSERVED RESULT
Error stating "the file cannot be found" with a broken file path.

EXPECTED RESULT
All selected files to be added to the HTML form for further processing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION