2

I use Chromium.

When I want to upload a file, then Chromium only let me choose local files which I have on my laptop.

I would like to upload images from a cloud-storage (gdrive, dropbox, onedrive, ...).

Is there a way to enable this?

BTW: I know that I can download the file from the cloud-storage, and then upload it from my local pc. But this is .... I am missing the right words. My goal is to reduce cognitive load.

guettli
  • 1,765

1 Answers1

1

This restriction is due to Chromium being installed as a snap. snap applications run in a sandbox, a confined environment. To be able to reach your personal files in your home directory, you could enable the home interface. This obviously decreases the confinement of the browser, and hence security.

The snap of chrome is configured to have a home interface, so you can establish the connection with the command:

snap connect chromium:home :home

Your cloud storage must be mounted under your home directory for this to work. If it does not, then you may work around this by mount binding the directory where they are accessed to a directory under your home directory, as in

mount --bind /<path_to_network_drive> /home/<yourlogin>/<somefolder>

To make this permanent, you can add a line in /etc/fstab.

vanadium
  • 97,564