1 Replies - 337 Views - Last Post: 22 February 2013 - 06:58 AM

#1 DarenR  Icon User is offline

  • D.I.C Lover

Reputation: 485
  • View blog
  • Posts: 3,250
  • Joined: 12-January 10

is there a way to disable a file input

Posted 22 February 2013 - 06:53 AM

My client wants to limit certain inputs to 1 file upload.
the form contains 30+ file uploads for specific items
some of the uploads are only allowed 1 file.

I have not found any information online on how to disable file upload inputs.

i have tried

 document.getElementById('fname_Subject_Front').display = none;
 document.getElementById('fname_Subject_Front').disabled = true;

and a few other methods


i am assuming since there can be malicious intent wit hthis type of coding that it is not allowed by javascript.

thanks for looking

Is This A Good Question/Topic? 0
  • +

Replies To: is there a way to disable a file input

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9393
  • View blog
  • Posts: 35,276
  • Joined: 12-June 08

Re: is there a way to disable a file input

Posted 22 February 2013 - 06:58 AM

Closing duplicate topic.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1