How to use File Input in HTML

In this article we will discuss about how to use the File Input in HTML.
  • 2147

In HTML another type of input mode is available .i.e. file. Through this input mode we can include entire file of our system while submitting the form in HTML. The file may include Text File, Image File or other kind of file. We have to decide the server-side scripting actions while uploading the file during form submission in HTML.

HTML Code:


<form method="post">


    Type some text (if you like):<br>

    <input type="text" name="textline" size="30">



    Please specify a file, or a set of files:<br>

    <input type="file" name="datafile" size="40">



    <input type="submit" value="Send">






Ask Your Question 
Got a programming related question? You may want to post your question here


More Articles

© 2020 DotNetHeaven. All rights reserved.