MartianMartian
MartianMartian

Reputation: 1849

js input type=file/image click not working on chrome, Oct 2022

<img src="./images/sendimage.svg" class="sendimage" 
      @click="trigger_img"/>

<input 
    style="display:none" 
    :id="img_input_key" type="file" accept="image/*">

this used to work, if i want to trigger file upload behavior in chrome. but it's disabled now? am i getting it wrong or something, can someone explain, if this is going to be disabled in all major browsers? or is it just a bug? what will happen in mobile web?

Oct 11, 2022, Safari still supports this clicking ability.

don't mind the framework, i'm using Vue 2.6, but should not have anything to do with the problem

Upvotes: 1

Views: 1038

Answers (1)

hun
hun

Reputation: 66

I had same problem I just re open and it work! Shut down Chrome completely and turn it back on

Upvotes: 5

Related Questions