Stephin
Stephin

Reputation: 65

One file upload at a time in blueimp jquery upload

I am using blueimp jquery file upload to upload files. However I want a single file to be selected at a time. How do I disable selecting multiple file selections, not meant removing multiple from input. I do not want add another file when one file is selected

Upvotes: 3

Views: 208

Answers (2)

Muhammad Awais
Muhammad Awais

Reputation: 4502

You can disable the element. By using

 document.getElementById("ElementID").disabled = true; 

Upvotes: 0

guest271314
guest271314

Reputation: 1

You can remove the element from document at change event, using Node.removeChild() or set element style to display:none

Upvotes: 2

Related Questions