What are the functionalities of the FileUpload Web server control?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What are the functionalities of the FileUpload Web server control?

Rating:

The FileUpload control allows a user to upload pictures, text files, or other files from his own computer to a Web server. The following are the functionalities of the FileUpload Web server control:

  • Prompts Users to Upload Files: The FileUpload control contains a text box that prompts users to type a file name that is to be uploaded to the Web server. The control also contains a Browse button that displays a file-navigation dialog box.

  • Handles Uploaded Files: After a user has selected or typed a file name in the text box and submitted the Web page, the file is uploaded to the Web server as part of the Web request. The file is saved in the Web server's cache memory. The FileUpload control can be accessed in the following ways:
    • A byte array by using the FileBytes property of the control.
    • A stream by using the FileContent property of the control.
    • An object of the HttpPostedFile type used in the PostedFile property of the control.
  • Examines the Uploaded Files: A user can upload potentially malicious files by using the FileUpload control. Before the file is uploaded to the Web server, the client script can be used to examine the types such as file name, file size, and MIME type of the file as part of a security measure. The file can then be saved on the server.

  • Other Functionalities: The FileUpload control supports the SaveAs method that writes the file to a local disk. The selected file starts executing on the Web site after it has finished uploading to the Web server.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.