Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.UploadedEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Provides data for the Uploaded event.
Initializes a new instance of the UploadedEventArgs class with the specified collection of uploaded files.
HttpFileCollection: Returns the collection of uploaded files.
Wisej.Web.Upload
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represent an upload widget. Allows users to selected one or more files and upload them to the server.
The allowed files string follows the HTML 4.01 and HTML5 specifications. You can configure only one entry in the browser's file dialog. The syntax is "file_extension|audio/|video/|image/*|media_type" where
file_extension A file extension starting with the dot, e.g: .gif, .jpg, .png, .doc.
audio/* All sound files are accepted
video/* All video files are accepted
image/* All image files are accepted
Throws:
Aborts the current upload request, if in progress.
Opens the file selection dialog and uploads the files selected by the user.
This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.
This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event. You can abort the uploading process by setting e.Cancel = true in the event handler.
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
Specifies the possible values for the property.
Name | Description |
---|
Name | Description |
---|
Represents the method that will handle the event of a control.
Name | Type | Description |
---|
Name | Description |
---|
: Specify the types of files that the server accepts (that can be submitted through a file upload).
media_type A valid media type, with no parameters. Look at for a complete list of standard media types.
: Returns or sets whether the upload control allows the selection of multiple files.
: Returns or sets the position of the upload button relative to the value field..
: Returns or sets a value that specifies which camera to use for capture of image or video data, if the property indicates that the input should be of one of those types.
: Returns or sets whether the value field is visible.
: Returns or sets the icon that is displayed in the upload button in the control.
: Returns or sets the theme name or URL for the icon to display in the upload button in the control.
: Returns or sets a value that indicates that the control is invalid.
: Returns or sets the invalid message that is shown in the invalid tooltip.
: Returns or sets the maximum file size in bytes.
The value specified is less than 0.
: Returns or sets whether the upload control shows a the ajax-loader image when uploading the file(s).
: Returns or sets the text associated with this control.
: Returns or sets the alignment of the text on the button control.
: Returns or sets the text to display in the text fields part of the control.
Fired when the control generates an upload error.
Fired while the control receives the data being uploaded.
Fired when files are uploaded to the control.
Fired before the control received the files being uploaded.
Fired when the user has selected the files to upload.
Name | Description |
---|
files
An instance of HttpFileCollection containing the uploaded files.
Default | Default value. |
Environment | Specifies that the outward-facing camera and/or microphone should be used. |
User | Indicates that the user-facing camera and/or microphone should be used. |
sender | The source of the event. |
e |
Bindable components implement this interface. |
All wisej components implement this interface. |
Represents a Wisej component that is capable of handling postback requests from the client. |
Allows an object to serialize itself. |
Returns or sets a value that specifies which camera to use for capture of image or video data, if the property indicates that the input should be of one of those types.
A that contains the event data.
Fired when files are uploaded to the control.
All wisej controls derived from the class must implement this interface.
Represents the method that will handle the event of a control.
Name | Type | Description |
---|
Name | Description |
---|
Name | Description |
---|
Name | Description |
---|
Provides data for the event.
Initializes a new instance of the class with the specified error message.
Name | Type | Description |
---|
: Returns the error type.
: List of file names that failed to upload.
: List of file sizes that failed to upload.
: Returns the error message.
Name | Description |
---|
FileTooLarge | One of the files being uploaded is too large. |
Upload | An error occurred while upload a file. |
sender | The source of the event. |
e |
Returns the error type. |
type |
message | The error message. |
fileNames | The list of files that failed to upload. |
fileSizes | The list of files that failed to upload. |
A that contains the event data.
Fired when the control generates an upload error.
The error type, one of .
Represents the method that will handle the event of a control.
Provides data for the event.
Initializes a new instance of the class with the specified error message.
Name | Type | Description |
---|
: The number of bytes transferred.
: The total number of bytes of content that will be transferred.
Name | Description |
---|
Provides data for the event.
Initializes a new instance of the class with the specified collection of uploaded files.
Name | Type | Description |
---|
: Returns an array containing the names of the files being uploaded.
: Returns an array containing the sizes in bytes of the files being uploaded.
Name | Description |
---|
loaded | The number of bytes transferred. This doesn't include headers and other overhead, but only the content itself. |
total | The total number of bytes of content that will be transferred. If the total size is unknown, this value is zero. |
fileNames | A string array containing the named of the files being uploaded. |
fileSizes | An integer array containing the sizes of the files being uploaded. |
Represents the method that will handle the event of a control.
Represents the method that will handle the event of a control.
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
sender
The source of the event.
e
A UploadProgressEventArgs that contains the event data.
Fired while the Upload control receives the data being uploaded.
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
sender
The source of the event.
e
A UploadingEventArgs that contains the event data.
Fired before the Upload control received the files being uploaded.