Home / FAQ / ASP.NET / Basic / How can I specify the ‘upload a file’ input textbox in a form to be read only so that the user can click on the browse button and pick a file but they cannot type anything into the textbox next to the browse button.
<input id='File1' type='file' contenteditable=false />
Platform BlazorASP.NETWinFormsWPFAngularReact
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with