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

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 10.0.0
Syntax
C#
public static class UploadHelper

The UploadHelper type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberNO_ALLOWED_EXTENSION
Constant represents that no file extension is allowed to be uploaded.
Top
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
See Also