![]() ![]() | ||
This class gives you access to HTML <input type= "file"> elements in server code. As discussed in the In Depth section of this chapter, this control lets the user upload files (you can use the PostedFile property to get access to the uploaded file). Here is the inheritance hierarchy for this class:
Object Control HtmlControl HtmlInputControl HtmlInputFile
You can find the notable public properties of HtmlInputFile objects in Table 19.29. (This class has no non-inherited methods or events.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class; you can find them in Tables 15.1 to 15.3 in Chapter 15. This class also inherits the HtmlControl class—you can find that class in Table 19.2—and the HtmlInputControl class, which you can find in Table 19.4.
Property |
Means |
---|---|
Accept |
Gets/sets a list of MIME encodings the control can accept. |
MaxLength |
Gets/sets the maximum length of the file to upload. |
PostedFile |
Gives you access to the uploaded file. |
Size |
Gets/sets the width of the file path text box. |
![]() ![]() | ||