Dragging into a web browser to upload files fails with invalid path.

Whenever I have tried to drag files into google drive to upload them (or any other service) the drag has always failed, presumably this is because the system can't decide if the user's home directory is /var/home/user or /home/user This should be corrected as it is impacting drag and drop functionality with websites.
Solution:
& givve it access to the folder
Jump to solution
35 Replies
nagito || Knight of Emilia
/var/home/user or /home/user both are correct
Mike Hollis Jr
Mike Hollis JrOP2w ago
well then there's a generic problem with dragging into a web browser to upload files
nagito || Knight of Emilia
try uploading a file without spaces in the name
Mike Hollis Jr
Mike Hollis JrOP2w ago
they didn't have spaces in the name, just underscores and alphanumeric characters
nagito || Knight of Emilia
those are fine
Mike Hollis Jr
Mike Hollis JrOP2w ago
yet they are not
No description
Mike Hollis Jr
Mike Hollis JrOP2w ago
I can upload them via the file picker, whatever it is called, but the I can not drag them in
nagito || Knight of Emilia
what browser are you using?
Mike Hollis Jr
Mike Hollis JrOP2w ago
Current chrome, with Google Drive
nagito || Knight of Emilia
close the browser run com.google.Chrome --ozone-platform=wayland in a terminal this should re launch the browser now see if it works
bobbybowser
bobbybowser2w ago
Maybe Flatpak permissions to the directory?
nagito || Knight of Emilia
yeah could be i guess the file chooser shouldn't be affected by permission issues because chrome uses xdg portals drag & drop doesn't yet at least
Mike Hollis Jr
Mike Hollis JrOP2w ago
the wayland parameter doesn't change anything, and it's a subdirectory of the user's home, are you just talking about a simple chmod or is there some sort of flatpak specific permissions (I've never used flatpak before)
nagito || Knight of Emilia
yes flatpak apps live in a container (like a chroot) where they typically have little/ideally no access to user files the intended way to grant access to files are portals apps/dbus interfaces which do have access to user files when chrome wants a file picker it does use the filechooser portal to show the system file picker & request a file i don't think there's a drag/drop portal so you'd need to open up the sandbox
Solution
nagito || Knight of Emilia
& givve it access to the folder
nagito || Knight of Emilia
chrome's sandbox has access to Downloads by default as i recall
nagito || Knight of Emilia
these are KDEs flatpak permission settings
No description
Mike Hollis Jr
Mike Hollis JrOP2w ago
I don't have that option, do I need to install something to allow me to get those settings?
No description
nagito || Knight of Emilia
no if you select a flatpak app it'll show a flatpak permissions button on the top right ow the Window
Mike Hollis Jr
Mike Hollis JrOP2w ago
Are you talking about the top right of the icon? once the application opens? or inside a specific software that lists flatpaks?
Mike Hollis Jr
Mike Hollis JrOP2w ago
oh! right thank you checking
nagito || Knight of Emilia
back in older versions of KDE plasma there used to be a flatpak permissions section that brings you right to manage flatpak permissions but it was merged
Mike Hollis Jr
Mike Hollis JrOP2w ago
ok so dolphin didn't have the button, and chrome did, so I gave read/write access to chrome and it still didn't make a difference
nagito || Knight of Emilia
dolphin isn't a flatpak app
Mike Hollis Jr
Mike Hollis JrOP2w ago
No description
nagito || Knight of Emilia
only flatpak apps have the full flatpak permissions section don't forget to hit applly
Mike Hollis Jr
Mike Hollis JrOP2w ago
I did
nagito || Knight of Emilia
but it really should be working if applied
Mike Hollis Jr
Mike Hollis JrOP2w ago
oh that worked I got it I forgot to restart chrome now I'm good and it's uploading thank you
Mike Hollis Jr
Mike Hollis JrOP2w ago
No description
Mike Hollis Jr
Mike Hollis JrOP2w ago
This should probably be considered for being set by default
nagito || Knight of Emilia
buuut it isn't really safe what if say a website compromises chrome it would be able to read your user files
Mike Hollis Jr
Mike Hollis JrOP2w ago
perhaps a middle ground solution then? dragging into websites is a common practice
nagito || Knight of Emilia
well portals are a sort of middle ground but there isn't a drag/drop portal or at least it isn't implemented by chrome god knows why

Did you find this page helpful?