0

i want to upload the file and made custom input file it's working in every browser but not in safari the label is hidden and using label for to click it

<form  enctype="multipart/form-data" class="setting_profile_upload_pspandhe" >
    <input type="file" name="clientphotoouplod" id="uploadtheclientfilephoto86849LJLG" onchange="change_profile()" hidden="hidden" />
    <label for="uploadtheclientfilephoto86849LJLG" id="Aa482018505Aa_" >Upload Profile</label>
</form>
3
  • Which version of safari do you have? Apr 8, 2018 at 16:58
  • brother version i am using is 5.1.7
    – ashwell
    Apr 8, 2018 at 18:42
  • I've tried this on latest safari version 15, and it works. Apr 9, 2018 at 4:50

1 Answer 1

0

Maybe Safari will hide a label connected with hidden input. Try to hide your input with css (display: none;)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.