Drag/drop image on flatpak browser / Comfyui not working

I’m using mainly fedora for IA image generation with Comfyui app available thru an internet browser ( here i tried Chrome and Brave browser) and which is a nodal app. There’s a node called “Load Image” to load an image inside the workflow.
You have 2 option to load an image : the " choose file to upload" button which open the file picker window which work everytime but isn’t very quick and optimized for any cases
Or you can drag and drop an image on the “load image” node from a Nautilus window , and this works only from the Download Folder > If i try to drag and drop the same image but from another folder i end with : type error Failed to fetch .

 Failed to load resource: net::ERR_H2_OR_QUIC_REQUIRED
widgets.js:507 onDragDrop called
:8188/upload/image:1 
        
        
       Failed to load resource: net::ERR_H2_OR_QUIC_REQUIRED
widgets.js:507 onDragDrop called
widgets.js:507 onDragDrop called
widgets.js:507 onDragDrop called
widgets.js:507 onDragDrop called
:8188/upload/image:1 
        

if you have any idea from where it can come from ?

Are you using the flatpak or the .rpm for the Browser?

Added ai, workstation

flatpak

So I believe, that in the flatpaks of the browser, they would need access to the entire
/home to have the ability to drag and drop from anywhere. They come configured to use ~/Downloads by default which is why it works from there.

You would need to loosen the permissions for it to work, or use the .rpm of those applications. I have not tested this btw

Edit: I forgot to include the screenshot with the Download permissions

Here is an example of Flatseal handling permissions to the Flatpak LibreWolf Browser.

As you can see, it allows the xdg-downloads. Adding other specific directories should be done at your own discretion.

You can check and manage your Browser flatpak permissions with Flatseal.

2 Likes

Flatpaks generally have no real drag&drop support.

At least not “I drag a file and inside the app I can place it”

You can drop a file onto the app, like opening an image with GIMP or Inkscape.

There is a portal being worked on.

So… while being interesting with AI and all, this thread is just a general issue with flatpak browsers.

And… Google Chrome also has a repo that is even pre-added when clicking a button. I would never recommend using that though.

1 Like

Added flatpak, portals and removed ai, workstation

thanks a lot

1 Like

thank u

Not recommended why?

Because it logs everything you do, sends all your data to Google and when installed as an RPM has wide access to the system.

So this is generally a huge issue (that everyone should be aware of already?) not related to the problems here.