No Upload from any flatpak app possible

Hi Community,

I’m having a problem with my F41 SB Box. I can’t upload any file from any Flatpak app, whether it’s Microsoft Edge, Chromium or Ungoogled Chromium.

If I try to upload a file to VirusTotal, it says that I’ll upload an empty file. If I try to upload an image to Google Image Search, the “upload circle” just keeps spinning forever. I also tried removing an app with user data and reinstalling it afterwards, but that didn’t work either.
I couldn’t reproduce this in a VM, so it’s a bit frustrating. When I launch the app from the terminal, there are no errors showing when I try to upload a file, so I’m a bit stuck.

Any other ideas what I could try?

Thanks

If you dont need Google or Microsoft Tracking (lol) you can try my script and install a Chromium browser as RPM to your system.

Or you could use Fedora Chromium from the normal repo, or hardened Chromium from this COPR

Flatpak Chromium browsers have at least one big modification. May be other issues.

Report to the chromium flatpak repo, they may be the first to solve it.

I’m on Silverblue F41 and have no such issues (tested with Chromium installed from flathub).

Is it reproducible with non-Chromium based browsers installed as Flatpaks as well? I’m wondering if it is only specific to Chromium, or is it rather a flatpak-permissions related issue.

Hi Mike,

as i already wrote:

It looks like this issue is only on my computer, and the same goes for the Flatpak version of Firefox.

I’ve had a bit more luck, though – uploading an image works if I put the file in the root of my home folder. For example, ~/image.jpg works, but ~/Downloads/image.jpg doesn’t.

Another test: I can browse the Download Directory by opening file:/// in the browser and navigating to /var/home/$user/Downloads and also can open the Image successfully, so it’s not likely that this is a permission issue.

ok, another step forward:

in the Default Configuration with no oveerrides, ungoogled chromium and chromium has acces to the whole user home directory:
image

if i remove this permission, it works. I’m totally confused now! As this is not an issue on a fresh installed system.

Another step forward: It only happens when I use ‘Favourite links’ on the left in the portal picker. If I open the root of my home folder and navigate to the desired folder, it works.

So something’s wrong with my “Favourites” on the left.

After doing a bit more digging, I found that all the entries in the bookmark file from Nautilus (stored in $HOME/.config/gtk-3.0/bookmarks) were in the old format for Fedora Workstation (/home/user/) instead of Atomic Desktops (/var/home/user/).

I replaced all the lines with the correct values, and now uploading files are working fine.

1 Like