1.

What Is File Upload?

Answer»

File UPLOAD is Web page FUNCTION which allows visitor to specify a file on the browser's system and submit it to the Web server. This is a very USEFUL function for many interactive Web sites. Some examples are:

  • Web base email systems for users to send attachments.
  •  Forums that allows user to submit pictures.
  •  Web sites file managers for users to build their own Web pages.

Which HTML Tag Allows Users to Specify a File for Uploading?
To present an input field on your Web page to allow users to specify a local file to upload, you need to use the <INPUT TYPE="FILE" ...> tag inside a <FORM ...> tag. The <INPUT TYPE="FILE" ...> will be displayed as a text input field followed by a BUTTON called "Browse...". Users can either enter the full path name of a local file, or click Browse button to go through a dialog box to select a file interactively. The following PHP CODE shows you a good example of the file upload tag:

<?php print("<html><form>n"); print("<input type=file>n"); print("<input type=submit>n"); print("</form></html>n"); ?>

File upload is Web page function which allows visitor to specify a file on the browser's system and submit it to the Web server. This is a very useful function for many interactive Web sites. Some examples are:

Which HTML Tag Allows Users to Specify a File for Uploading?
To present an input field on your Web page to allow users to specify a local file to upload, you need to use the <INPUT TYPE="FILE" ...> tag inside a <FORM ...> tag. The <INPUT TYPE="FILE" ...> will be displayed as a text input field followed by a button called "Browse...". Users can either enter the full path name of a local file, or click Browse button to go through a dialog box to select a file interactively. The following PHP code shows you a good example of the file upload tag:



Discussion

No Comment Found