Bug 502405

Summary: Cannot drag file into the Open File dialog's "Name:" field
Product: [Frameworks and Libraries] frameworks-kio Reporter: Alexander Potashev <aspotashev>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: akselmo, kdelibs-bugs-null, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.11.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander Potashev 2025-04-04 13:01:11 UTC
SUMMARY
Cannot drag file into the Open File dialog's Name field.

STEPS TO REPRODUCE
1. Open "Open File" dialog, e.g. for uploading a file in Chrome.
2. Open a folder with files in Dolphin
3. Drag a file from Dolphin onto the "Name:" field in the "Open File" dialog.

OBSERVED RESULT
Mouse cursor changes to the red circle (meaning "forbidden"), nothing happens when I release LMB.

As a workaround, I could drop the file in the directory list view to get the file selected, but it's not logical because drag&dropping files between directory lists typically means copying/moving files. As of today, we have inconsistency which causes confusion.

EXPECTED RESULT
The dragged file path should be inserted into the "Name:" field, the file at path should be selected in the "Open File" dialog. KF5 had this behavior.

SOFTWARE/OS VERSIONS
Operating System: <priorietary> (Debian rolling release)
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.7.2
Kernel Version: 6.10.11-1rodete2-amd64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Xeon® W-2135 CPU @ 3.70GHz
Memory: 62.4 GiB of RAM
Graphics Processor: Quadro P1000/PCIe/SSE2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-04-11 18:33:38 UTC
Being able to drag into the file view is intentional because it's a much larger drag target. But yes, we should support dragging into the name field too.