Bug 488309

Summary: Allow using web addresses as image source
Product: [Frameworks and Libraries] frameworks-kio Reporter: Antti Savolainen <antti.savo>
Component: Open/save dialogsAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 6.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Antti Savolainen 2024-06-10 16:19:24 UTC
SUMMARY
It would be nice to be able to use web addresses in the filepicker "Name:" field.  Back when I used windows, I remember using this functionality to quickly paste images from one site to another site. It would eliminate the step of saving the file manually onto your computer.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
KDE Plasma Version: 6.0.90
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Comment 1 Nate Graham 2024-06-10 20:44:20 UTC
You can. :) If you can't, it's either a bug in our code, or else you've actually using the GNOME/GTK file dialog which doesn't have this feature.
Comment 2 Antti Savolainen 2024-06-10 20:50:54 UTC
Am I doing something wrong in this demonstrative video or is the feature bugged? https://youtu.be/p_wRL4t7Cmw
Comment 3 Nate Graham 2024-06-10 21:15:08 UTC
Well, the target app has to be capable of accepting URLs as input. :) In this case Firefox appears to be only accepting local files.
Comment 4 Nate Graham 2024-06-10 21:15:50 UTC
Or maybe it's not Firefox and it's actually bugzilla that won't accept a URL for this field. Either way, the file dialog did its part, but the output it handed off to the app itself needs to be handled by the app.
Comment 5 Antti Savolainen 2024-06-10 21:20:10 UTC
I see. Would it be possible to create a feature that downloads the file in the URL to /tmp/ for example and then adds that as input?
Comment 6 Nate Graham 2024-06-12 13:22:16 UTC
How would the system know that the client is going to reject a URL, though?
Comment 7 Antti Savolainen 2024-06-12 14:22:33 UTC
Yeah, I didn't know if there was a mechanism to detect that, which is why I asked. Maybe a system setting that toggles between passing the URL and always downloading the file before upload?
Comment 8 Nate Graham 2024-06-12 15:01:34 UTC
It was a rhetorical question; there isn't a way. :) 

Working around that by always downloading would work, but waste network resources and time--particularly for large files.

Adding a user-facing setting to switch between the two does not make sense becaus eusers would be unable to determine whether to use it or not. This is the kind of internal thing that the system itself needs to decide on.