6

I am currently using Ubuntu 22.04 LTS.

When I try to upload files using any browser the website does nothing.

screenshot of file upload

In the above image if I click on Add file then "select files from your device".

My file manager does not open.

Drag and drop is working but not a lot of sites support that feature.

When I tried using chrome, the file manager window would launch but after selecting a file the browser would freeze.

I have tried a few fixes:

  • Refreshing the browser (firefox)
  • Downloading java plugin add-on
  • Installing xdg-desktop-portal , xdg-desktop-portal-gtk , ubuntu-restricted-extras through terminal.

These are the links which I used to try resolving this problem:

  1. Ubuntu 10.10 , I tried this fix but couldn't find iced-tea plugin

  2. This is the exact problem I face

  3. I tried this fix

Hiroga Katageri
  • 1,345
  • 3
  • 21
  • 40
zaindeen
  • 61
  • 1
  • 4
  • Chrome uses GTK as the UI framework, while Ubuntu uses QT. It seems that Ubuntu's desktop environment does not have GTK components. – aszswaz Jan 16 '23 at 13:09

2 Answers2

20

I ran into the same issue, and noticed that when I tried it with Chrome this would cause it to hang. Searching for that brought me to https://askubuntu.com/questions/1404550/google-chrome-freeze-uploading-a-file which suggests:

sudo apt install xdg-desktop-portal-gnome

This did the trick for me, seems to be a known issue in 22.04 right now.

pen_gwen
  • 301
  • 1
  • 3
2

I had the same problem.

I fixed it disabling hardware acceleration in Google Chrome