Click or drag to resize
UploadHelper Class
Helper class for uploading files.
Inheritance Hierarchy
SystemObject
  CMS.ExtendedControlsUploadHelper

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntax
C#
public static class UploadHelper

The UploadHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIsExtensionAllowed
Checks if specified file extension is allowed to be uploaded.
Public methodStatic memberRestrictExtensions
Restricts allowed file extensions by file extensions defined by the CMSUploadExtensions setting (extensions not defined by this setting cannot be uploaded). Extensions are without dots and separated by semicolon (e.g. jpg;png;gif). If no file extension is allowed then "NO_ALLOWED_EXTENSION" is returned.
Top
Fields
  NameDescription
Public fieldStatic memberNO_ALLOWED_EXTENSION
Constant represents that no file extension is allowed to be uploaded.
Top
See Also