Solved Upload File Button does not work

Solved issue
Status
Not open for further replies.

tkoehn

New Member
Joined
Jan 6, 2023
Messages
6
Reaction score
0
Credits
66
I have asked this in several places, even AskUbuntu but nobody seems to have an answer.
I am running Ubuntu 22.04, All the web browsers installed have this problem.

Web Browsers: Chrome Version: 108.0.5359.124, Firefox Version: 108.0.1, Edge Version: 109.0.1518.26

Somewhere in the last month or so I have noticed the Web Browsers File Upload button quite responding (System File Dialog does not popup). It started in Chrome first and then right before Christmas I noticed it happening in Firefox. I installed Edge with the same results.

I have tested with multiple websites and still no response. Searching for a fix has not yet been successful. All of the stated possible answers do not seem to work. Looking for any kind of suggestions.

To better explain the problem I am facing, if you visit w3schools website https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_file_upload_button, and click on the Choose File buttons, you should get a System File Dialog Popup to choose a file. On my PC, it does nothing. It does not matter which browser, none of them will respond when clicking on the Choose File button.

Is this a browser issue, or a Ubuntu issue? I have ran across a few sites that state some files could be missing but everything I try does not work. Additionally I have noticed that the export bookmarks does not work on any web browser as well.

Yesterday I thought I had the problem fixed. This is what I did:
  1. Removed ALL web browsers and any google / chrome / chromium related packages
  2. Rebooted
  3. sudo apt update && sudo apt upgrade
  4. look what shows up today as an update
2023-01-05 08:49:06 upgrade nautilus:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:08 upgrade nautilus-data:all 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:10 upgrade libnautilus-extension1a:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:12 upgrade gir1.2-nautilus-3.0:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:14 upgrade libksba8:amd64 1.6.0-2ubuntu0.1 1.6.0-2ubuntu0.2
2023-01-05 09:11:53 upgrade chrome-gnome-shell:all 10.1-5 10.1-5

Re-installed Chrome and other browsers and now the File Upload Buttons as well as Bookmark export features work.

This morning I rebooted my machine and the problem returned.

Looking at the Apt History log. I noticed this morning updates were automatically done however they don't appear to be anything I would think would cause this issue.

Start-Date: 2023-01-06 06:35:16
Commandline: /usr/bin/unattended-upgrade
Upgrade: libcurl4:amd64 (7.81.0-1ubuntu1.6, 7.81.0-1ubuntu1.7), curl:amd64 (7.81.0-1ubuntu1.6, 7.81.0-1ubuntu1.7)
End-Date: 2023-01-06 06:35:21

Start-Date: 2023-01-06 06:35:23
Commandline: /usr/bin/unattended-upgrade
Upgrade: libcurl3-gnutls:amd64 (7.81.0-1ubuntu1.6, 7.81.0-1ubuntu1.7)
End-Date: 2023-01-06 06:35:25
@WKS-8MY5482:/var/log/apt$

Anyone else have this problem or have any idea on how I can resolve this?

Thanks[
 


To better explain the problem I am facing, if you visit w3schools website https://www.w3schools.com/howto/tryit.asp?filename=tryhow_html_file_upload_button, and click on the Choose File buttons, you should get a System File Dialog Popup to choose a file. On my PC, it does nothing. It does not matter which browser, none of them will respond when clicking on the Choose File button.
Do you mean click on the "Browse" button under "Click on the "Choose File" button to upload a file"? If so it works for me and I have Ublock Origin enabled.
 
Last edited:
Are you running any ad blockers ? disable them - also look at libcurl the update may not be compatible since it updated - libcurl is designed and meant to be available for anyone who wants to add client-side file transfer capabilities to their software, on any platform, any architecture and for any purpose
I am running Expirion Linux which is based on Debian 11 my libcurl4 is 7.74.0 yours is 7.81.0 - What I do not know does the w3schools website require libcurl or not if it does you may need to ask them what version - my 7.74.0 works I do not know about 7.81.0 - since it is effecting all your browsers and not just one - so it would seem to me to be a system issue over a browser issue
 
Last edited by a moderator:
I have no problem with either Brave browser or Chromium browser.
Any adblocker in any of your browsers?
 
Do you mean click on the "Browse" button under "Click on the "Choose File" button to upload a file"? If so it works for me and I have Ublock Origin enabled.
Well this is how my browsers show the page:

1673039184041.png

I do have ad blockers but that has never been an issue and I don't think it comes into play here as it has something to do with the way EVERY browser on my PC interacts with the Files manager (Nautilus). That being said I did disable the ad blocks and no change.
 
This is how it looks for me on Fedora, when I click on "Browse" I get a system pop-up.
Screenshot_20230106_221315.png
 
Last edited:
I installed an Ubuntu 22.04 vm and went to that www3 schools webpage you shared and clicked browse. It works then as well so it seems to be something specific to your system since it's working for me and I think for the other people in this topic as well.
Screenshot from 2023-01-06 22-35-01.png
 
Welcome to Linux.org, tkoehn

Just for interests sake, are you willing to try another browser ?

Brave browser installs quickly and easily via terminal.

Uninstalls just as easily if need be
 
Hmm... A permissions issue? The browser doesn't have permission to interact with the system? That'd explain it. Are they running their browsers in a jail, as a different user, or?
 
Welcome to Linux.org, tkoehn

Just for interests sake, are you willing to try another browser ?

Brave browser installs quickly and easily via terminal.

Uninstalls just as easily if need be
As for which browser I use I don't care. It's not a browser issue. It has something to do with when the browser engine calls the system for a file dialog. Ubuntu uses Nautilus as it's default file manager. Also keep in mind that almost all browsers for Ubuntu and other linux systems all use either the chromium engine or the mozilla engine. I am not sure that the chromium engine isn't based off of mozilla anyways.

Notice in my original post I mentioned that I did an apt upgrade and the following files upgraded.

2023-01-05 08:49:06 upgrade nautilus:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:08 upgrade nautilus-data:all 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:10 upgrade libnautilus-extension1a:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:12 upgrade gir1.2-nautilus-3.0:amd64 1:42.2-0ubuntu2 1:42.2-0ubuntu2.1
2023-01-05 08:49:14 upgrade libksba8:amd64 1.6.0-2ubuntu0.1 1.6.0-2ubuntu0.2
2023-01-05 09:11:53 upgrade chrome-gnome-shell:all 10.1-5 10.1-5

None of these are browsers. They all have to do with nautilus and the gnome shell. After this update was done followed by a reboot the File Upload buttons in ALL of the browsers started working.

I did re-install chrome-remote-desktop and not sure that it might have had some impact on this.
 
Hmm... A permissions issue? The browser doesn't have permission to interact with the system? That'd explain it. Are they running their browsers in a jail, as a different user, or?
The browser does make some specific system calls in order to download and upload files. I believe this is under the permissions of the current logged in user.

I don't think this has anything to do with permissions. When the Choose File button is clicked an event is fired that calls a gnome extension to open a system dialog box. I think this is what is broken. Something that was installed / upgraded I think changed/removed a library that is needed to open the system dialog.

There is only a few places that I have found on the web that someone had the same issue as I am having but they are a year or more old.
 
It's not a browser issue.
I believe this is under the permissions of the current logged in user.
Seeing you have made this assumption , have you made any changes at all to the permissions of the logged in user ?......are you the only user on this machine?
_____________________________________________________________________________________


I don't think this has anything to do with permissions vs
I believe this is under the permissions of the current logged in user.
Which one ?....you can't really have it both ways.

I take it you are not willing to try Brave Browser ?
 
Do you run any antivirus or anything of that nature on the pc ?

Are there any extensions/addons of a proprietary nature added either to the pc or to any of the browsers ?
 
Are there any extensions/addons of a proprietary nature added either to the pc or to any of the browsers ?

and perhaps you can show us a screenshot of each of the browsers with where the file upload button is supposed to be, and likewise with the extensions/addons/plugins?

G'day @tkoehn and welcome to liux.org :)

I should say, too, that while a number of browsers are available to use in GNU/Linux and most are open source, they are not GNU/Linux, so we may not have the answers, and have you checked yet with the individual browser producers and their forums to see if there is anything?

Cheers

Chris Turner
wizardfromoz
 
_____________________________________________________________________________________



Which one ?....you can't really have it both ways.

I take it you are not willing to try Brave Browser ?
To answer your second question, no I am not willing to install Brave nor do I feel the need to install another browers.

As for the first question which I am not sure how you understood it but my intention was to say that when the browser is making a system call that it would do so as the current logged in user and that I did not believe that the problem was a permissions issue becuase I believe the issue was beyond the system call. By that I mean the browser made the system call and some library on the system may have failed due to an update or missing file. That's what I was trying to say.
 
As I mentioned the problem went away and then last Friday after a reboot the problem returned. As for this morning a fresh install things are working. Keeping in mind that I have added / removed / re-installed various packages.

My gut feeling is that some library changed something along the way that effects my system and not others.

Thanks to everyone.
 
I have this issue too
all browser in Ubuntu 22.04.1 LTS have upload issue
and I can't fix this
 
syslog show this when is click upload file

Mar 13 12:24:24 pc check-new-release-gtk[61622]: WARNING:root:timeout reached, exiting
Mar 13 12:24:24 pc systemd[2136]: Finished Notification regarding a new release of Ubuntu.
Mar 13 12:24:24 pc systemd[2136]: update-notifier-release.service: Consumed 1.792s CPU time.
Mar 13 12:24:29 pc dbus-daemon[927]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.295' (uid=1000 pid=52813 comm="/snap/firefox/2391/usr/lib/firefox/firefox " label="snap.firefox.firefox (enforce)")
Mar 13 12:24:29 pc firefox[52813]: Can't open portal file chooser: GDBus.Error:eek:rg.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
Mar 13 12:24:29 pc systemd[1]: Starting Hostname Service...
Mar 13 12:24:29 pc dbus-daemon[927]: [system] Successfully activated service 'org.freedesktop.hostname1'
Mar 13 12:24:29 pc systemd[1]: Started Hostname Service.
Mar 13 12:24:29 pc kernel: [ 3826.882564] audit: type=1107 audit(1678697669.484:400): pid=927 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.311" pid=52813 label="snap.firefox.firefox" peer_pid=68493 peer_label="unconfined"
Mar 13 12:24:29 pc kernel: [ 3826.882564] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Mar 13 12:24:29 pc kernel: [ 3826.882735] audit: type=1107 audit(1678697669.484:401): pid=927 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.311" pid=52813 label="snap.firefox.firefox" peer_pid=68493 peer_label="unconfined"
Mar 13 12:24:29 pc kernel: [ 3826.882735] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Mar 13 12:24:29 pc kernel: [ 3826.883391] audit: type=1107 audit(1678697669.484:402): pid=927 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.311" pid=52813 label="snap.firefox.firefox" peer_pid=68493 peer_label="unconfined"
Mar 13 12:24:29 pc kernel: [ 3826.883391] exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
 
Status
Not open for further replies.

Members online


Latest posts

Top