Bug 488309 - Allow using web addresses as image source
Summary: Allow using web addresses as image source
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (other bugs)
Version First Reported In: 6.2.0
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 16:19 UTC by Antti Savolainen
Modified: 2024-06-12 15:01 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.