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.
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.
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.
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.