The UploadModule type exposes the following members.

Constructors

  Name Description
Public method UploadModule
Constructor.

Methods

  Name Description
Public method AppliedPersonalizationState (Overrides BasePart..::..AppliedPersonalizationState(WebPart).)
Protected method btnUpload_Click
Public method CheckIfTargetFolderExists
Protected method OnFileUploaded
Raises the FileUploaded event on each file upload.
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Public method SaveFile
Saves a file retrieved from the remote URL.
Public method SaveFiles
Saves uploaded files. By default this method is called from the upload button click event handler, however it can be called directly when needed.
Protected method SetupProvider
Setup default file system provider.

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPagerTemplate
Gets pager template.
(Defined by ControlExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Protected field btnUpload
btnUpload control.
Protected field fileGallery
fileGallery control.
Protected field lblWarning
lblWarning control.
Protected field pnlContainer
pnlContainer control.
Protected field radUpload
radUpload control.

Properties

  Name Description
Public property AllowedFileExtensions
Gets or sets Upload module allowed file extensions.
Public property ContentProviderTypeName
Content provider type used for uploading files.
Public property ControlObjectsVisibility
Upload control objects visibility. Set to "None" to remove all additional UI elements like Add and Delete buttons from the upload field.
Public property CustomProperties
Gets or sets custom properties that are transfered to upload control.
Public property EnableFileGallery
Gets or sets a value indicating whether file gallery is enabled.
Public property FileContentProvider
File content provider.
Public property Height
Get or set Upload module height
Public property InitialUploadItemCount
Get or set initial upload item count
Public property Localization
Gets the upload module localization strings.
Public property MaxFileInputsCount
Maximum number of upload fields.
Public property OverwriteExistingFiles
Get or set if upload module should overwrite existing files
Public property ParentEntityId
Gets or sets the parent entity Id of the associated module.
Public property ParentEntityType
Gets or sets parent entity type (Note, message, album, ...) that is associated with this module.
Public property SaveThumbnails
Indicates if thumbails are saved for each upload.
Public property ShowUploadButton
Visibility of the upload button. When used in complex scenarios the upload button is sometimes not whoen and used, as the upload is performed on the main "Submit" button.
Public property ShowUploadProgressBar Obsolete.
Get or set if upload control should show upload progress bar
Public property TargetFolder
Get or set upload target folder - Virtual path (Note: Folder needs to have write permissions)
Public property TargetPhysicalFolder
Get or set upload target folder - Physical path (Note: Folder needs to have write permissions)
Public property UploadedFiles
Uploaded files collection.
Public property UserReputationNewFileScore
Gets or sets how much score user gets for new file submission.
Public property Width
Get or set Upload module width

Events

  Name Description
Public event FileUploaded
File upload event.

See Also