Title: Upload Button Grayed Out
Last modified: March 18, 2019

---

# Upload Button Grayed Out

 *  [jziegler](https://wordpress.org/support/users/jziegler/)
 * (@jziegler)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/upload-button-grayed-out/)
 * hi, I’ve been using the plugin for years (love it) but suddenly I no longer have
   the option of uploading. the button remains grayed out even after clicking “Choose
   File” and selecting a replacement image. WordPress 5.1.1.
 * thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [jziegler](https://wordpress.org/support/users/jziegler/)
 * (@jziegler)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11327293)
 * p.s. – this is occuring across multiple sites
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11328920)
 * Hey [@jziegler](https://wordpress.org/support/users/jziegler/) – thanks for your
   message and for using EMR!:-)
    Could you please try to downgrade this plugin 
   and see if you can still replicate the noted issue?
 * Thanks, I look forward to hearing from you,
    Alex
 *  Thread Starter [jziegler](https://wordpress.org/support/users/jziegler/)
 * (@jziegler)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11341248)
 * thanks Alex! yep, when I downgraded to 3.2.5 it works. so it must have something
   to do with the image preview?
 * thanks!
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11348732)
 * Thank you for your follow-up on this, we’ll look into it and try to address it
   with the next plugin update.
 * Best regards,
    Alex
 *  [adotson](https://wordpress.org/support/users/adotson/)
 * (@adotson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11468299)
 * Same issue here. Downgrading to 3.2.8/3.2.7 did not help even though they worked
   fine before (I use this plugin almost daily). My first guess is this has something
   to do with a recent WordPress update. Older versions like 3.2 work fine. I should
   add that this was while trying to upload an OpenDocument file and not an image.
   The issue exists whether I use the button to manually choose a file or the drag-
   and-drop option. It may have something to do with binary uploads. I will test
   other browsers to rule out the possibility of it being an issue with Chrome. 
   If I learn anything new I will let you know. Obviously one can always use FTP.
    -  This reply was modified 7 years, 1 month ago by [adotson](https://wordpress.org/support/users/adotson/).
    -  This reply was modified 7 years, 1 month ago by [adotson](https://wordpress.org/support/users/adotson/).
    -  This reply was modified 7 years, 1 month ago by [adotson](https://wordpress.org/support/users/adotson/).
 *  [adotson](https://wordpress.org/support/users/adotson/)
 * (@adotson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11468511)
 * I can confirm that 3.2.5 is the latest version that does not have this issue 
   with the current version of WordPress. I can also tell you that the issue is 
   with the removeAttribute method on line 151 of popup.php. Even when file.value
   evaluates as true, the “disabled” attribute is not being removed from the input
   button on the form. Still not sure if it is a browser or WordPress issue though.
 * Update: I am now 90% convinced this is due to changes in the JavaScript optimization
   engine of later Chromium-based browsers. I did some testing with some dummy PHP
   files and had similar results. Setting and removing DOM attributes seems to be
   not reliable anymore. I even added sleep functions as long as 20 seconds and 
   still had issues (even after clearing the browser cache). Searching on other 
   forums showed this is a common issue lately with the V8 engine. So I don’t think
   it is WordPress. I even tried removing the attribute altogether, adding a JS 
   sleep function and then setting the disabled attribute after a couple of seconds.
   In theory, this should have worked, but instead the button remained enabled and
   the setAttribute method had no effect. This has to be a browser bug. There are
   other methods for setting and removing attributes. If I get the time later I 
   will try some of them, but I’m done for the day.
    -  This reply was modified 7 years, 1 month ago by [adotson](https://wordpress.org/support/users/adotson/).
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11560274)
 * Hi [@adotson](https://wordpress.org/support/users/adotson/), can’t reproduce 
   it on our end, on these browsers:
 * (Chrome) Version 74.0.3729.131 (Official Build) (64-bit)
    (Chromium) Version 
   74.0.3729.157 (Official Build) snap (64-bit)
 * Could you please give us more details about which browser and version?
    -  This reply was modified 7 years ago by [ShortPixel](https://wordpress.org/support/users/shortpixel/).

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Upload Button Grayed Out’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/upload-button-grayed-out/#post-11560274)
 * Status: not resolved