| Name |
Description |
Accept
|
String.
Gets or sets a set of comma-separated strings, each of which is a valid MIME type that the server is able to accept.
This property has effect only for the browsers that supports HTML5.
See the accept attribute's description here.
Example: Accept="image/*"
Default String.Empty .
|
ButtonCenterImage
|
String. Gets or sets the relative URL of the image used as the repeated center part of the 'Browse' button's background.
Default String.Empty - Embedded image
    
is used.
|
ButtonLeftImage
|
String. Gets or sets the relative URL of the image used as the left part of the 'Browse' button's background.
Default String.Empty - Embedded image
is used.
|
ButtonRightImage
|
String. Gets or sets the relative URL of the image used as the right part of the 'Browse' button's background.
Default String.Empty - Embedded image
is used.
|
ButtonTextColor
|
Color.
Gets or sets the 'Browse' button's text color.
Default System.Drawing.Color.White .
|
BrowseFieldDescription
|
String. Gets or sets the description used in files browser.
This property has effect only for the browsers that doesn't supports HTML5 and so Adobe Flash is used.
Default String.Empty .
See online example.
|
ClearListImage
|
String. Gets or sets the relative URL of the image used as 'Clear files list' button.
Default String.Empty - Embedded image
is used.
Example: InProgressImage="~/Images/MyRemoveImage.gif"
|
ClientID
|
String. Gets the server control identifier generated by ASP.NET.
(Inherited from Control.)
|
CssClass
|
String. Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.
(Inherited from WebControl.)
Default "obout_ajax__fileupload".
|
FeedbackMode
|
Obout.Ajax.UI.FileUpload.FeedbackMode.
Gets or sets feedback method used by the control for the files upload and 'Browse' button generation.
Obout.Ajax.UI.FileUpload.FeedbackMode enum contains the following fields:
-
Page - feedback is formed by the control on the Page initialization.
-
HttpHandler - feedback is formed by the Http handler, see the HttpHandlerUrl property.
This feedback method is usefull when the control is placed inside repeaters, views, templates of the Grid, etc.
Default Obout.Ajax.UI.FileUpload.FeedbackMode.Page .
|
ForceSsl
|
Bool. Gets or sets a value indicating whether to force use of SSL for inner resources.
This property is useful when a proxy server such as Apache is used to service HTTPS requests and request HTTP pages from IIS.
Default false.
|
HttpHandlerUrl
|
String. Gets or sets the Url of .ASHX file used for feedback when
the FeedbackMode property is set to HttpHandler.
Default "FileUploadHandler.ashx".
|
ID
|
String. Gets or sets the programmatic identifier assigned to the server control.
(Inherited from Control.)
|
InfoImage
|
String. Gets or sets the relative URL of the image used as 'Information' button.
Default String.Empty - Embedded image
is used.
Example: InProgressImage="~/Images/MyInfoImage.gif"
|
InProgressImage
|
String. Gets or sets the relative URL of the 'In Progress' image used for a file that is still uploading.
Default String.Empty - Embedded image
is used.
Example: InProgressImage="~/Images/MyProgressImage.gif"
|
MaximumFileSize
|
Int. Gets or sets the maximum size (in kB) of the file for uploading.
Default 0 - any size is allowed.
See online example.
|
MaximumTotalFileSize
|
Int. Gets or sets the maximum total size (in kB) of files for uploading.
Default 0 - any size is allowed.
See online example.
|
OnClientBeforeUpload
|
String. Gets or sets the name of client-side function(handler) executed just before files transfer started.
This handler is added to the client-side event beforeUpload,
see Client-Side.
|
OnClientFilesPicked
|
String. Gets or sets the name of client-side function(handler) executed when files where selected from the files browser.
This handler is added to the client-side event filesPicked,
see Client-Side.
|
OnClientAfterServerResponse
|
String. Gets or sets the name of client-side function(handler) executed when the server acknowledges receipt of all files.
This handler is added to the client-side event afterServerResponse,
see Client-Side.
|
OnClientTransferFinished
|
String. Gets or sets the name of client-side function(handler) executed when all files have been transfered.
This handler is added to the client-side event transferFinished,
see Client-Side.
|
PostedFiles
|
Collection<PostedFileInfo>.
Gets a collection of uploaded files descriptors (on postback).
Example:
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
string result = "";
foreach (PostedFileInfo info in fileUpload1.PostedFiles)
{
result += " Name: " + info.FileName
+ " Length: " + info.ContentLength
+ " Content type: " + info.ContentType + "<br>";
}
if (result.Length == 0)
{
result = "No files uploaded";
}
label.Text = result;
}
}
|
RelativeImageUrl
|
Bool. Gets or sets a value indicating whether to use realtive URL for the 'Browse' button image.
Default false.
|
StyleFile
|
String. Gets or sets a style file path.
Default String.Empty - Embedded style file is used.
Example: StyleFile="~/GlobalStyles/MyFileUpload.css"
|
TempFolderPath
|
String. Gets or sets the relative URL of a folder used for temporary files holding.
Default String.Empty - System folder is used.
Example: TempFolderPath="~/temp"
|
UniqueID
|
String. Gets the unique, hierarchically qualified identifier for the server control.
(Inherited from Control.)
|
UploadFinishedImage
|
String. Gets or sets the relative URL of the 'Upload Finished' image used for files that are uploaded already.
Default String.Empty - Embedded image
is used.
Example: InProgressImage="~/Images/MyUploadedImage.gif"
|
UploadFolder
|
String. Gets or sets the relative URL of the folder for upload.
If you specify this folder, then uploaded files will be saved there automatically (you don't need to do it in your code behind).
Default String.Empty - Uploaded files will not be saved automatically.
|
ValidFileExtensions
|
String. Gets or sets valid extensions of files (separated with ';').
Default String.Empty (all files are allowed).
See online example.
|
Width
|
Unit.
Gets or sets the width of the popup (can be set in pixels only here).
(Inherited from WebControl.)
Default Unit.Pixel(250).
|