WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input FileUpload Object


Input FileUpload Object

The Input FileUpload object speaks to a HTML <input> component with type="file".

Access an Input FileUpload Object

You can get to a <input> component with type="file" by utilizing getElementById():

var x = document.getElementById("myFile");

Tip: You can likewise get to <input type="file"> via seeking through the elements accumulation of a form.

Create an Input FileUpload Object

You can make a <input> component with type="file" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "file");

Input FileUpload Object Properties

= Property included HTML5.
Property Description
accept Sets or returns the estimation of the acknowledge property of the document transfer button
autofocus Sets or returns whether a record transfer catch ought to naturally get center upon page load
defaultValue Sets or returns the default estimation of the record transfer button
disabled Sets or returns whether the record transfer catch is debilitated, or not
files Returns a FileList object that speaks to the record or documents chose with the document transfer button
form Returns a reference to the structure that contains the record transfer button
multiple Sets or returns whether a client is permitted to choose more than one record in the document transfer field
name Sets or returns the estimation of the name trait of the document transfer button
required Sets or returns whether a document in the record transfer field must be chosen before presenting a form
type Returns which kind of structure component the document transfer catch is
value Returns the way or the name of the chose file