AjaxUploader
Search Results for

    Show / Hide Table of Contents

    Class UploaderProvider

    Legacy provider wrapper built on top of the v5 storage and upload services.

    Inheritance
    object
    UploaderProvider
    UploaderFileSystemProvider
    Implements
    IDisposable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: CuteWebUI
    Assembly: AjaxUploader.dll
    Syntax
    public class UploaderProvider : IDisposable

    Properties

    Context

    Declaration
    protected HttpContext Context { get; }
    Property Value
    Type Description
    HttpContext

    IsDisposed

    Gets whether this provider wrapper has been disposed.

    Declaration
    public virtual bool IsDisposed { get; }
    Property Value
    Type Description
    bool

    SupportFS

    Gets whether the underlying provider exposes file-system paths.

    Declaration
    public virtual bool SupportFS { get; }
    Property Value
    Type Description
    bool

    Uploader

    Declaration
    protected IAjaxUploader Uploader { get; }
    Property Value
    Type Description
    IAjaxUploader

    Methods

    AppendData(Guid, string, Stream)

    Appends data to an uploaded file.

    Declaration
    public virtual void AppendData(Guid guid, string filename, Stream stream)
    Parameters
    Type Name Description
    Guid guid
    string filename
    Stream stream

    CopyTo(Guid, string)

    Copies the uploaded file to a new file-system path.

    Declaration
    public virtual void CopyTo(Guid guid, string newpath)
    Parameters
    Type Name Description
    Guid guid
    string newpath

    Delete(Guid)

    Deletes the specified uploaded file.

    Declaration
    public virtual void Delete(Guid guid)
    Parameters
    Type Name Description
    Guid guid

    Dispose()

    Disposes this compatibility wrapper.

    Declaration
    public virtual void Dispose()

    Exists(Guid)

    Returns whether the specified uploaded file exists.

    Declaration
    public virtual bool Exists(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    bool

    GetFSPath(Guid)

    Gets the file-system path for the uploaded file when supported.

    Declaration
    public virtual string GetFSPath(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    string

    GetInfo(Guid, out string, out int, out bool)

    Gets file metadata for the specified uploaded file.

    Declaration
    public virtual bool GetInfo(Guid guid, out string fileName, out int fileSize, out bool persist)
    Parameters
    Type Name Description
    Guid guid
    string fileName
    int fileSize
    bool persist
    Returns
    Type Description
    bool

    GetName(Guid)

    Gets the original file name for the specified upload.

    Declaration
    public virtual string GetName(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    string

    GetSize(Guid)

    Gets the file size in bytes for the specified upload.

    Declaration
    public virtual int GetSize(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    int

    Init(IAjaxUploader, HttpContext)

    Initializes the provider for the current uploader instance and request context.

    Declaration
    public virtual void Init(IAjaxUploader uploader, HttpContext context)
    Parameters
    Type Name Description
    IAjaxUploader uploader
    HttpContext context

    Maintain()

    Runs provider-specific maintenance tasks.

    Declaration
    public virtual void Maintain()

    MoveTo(Guid, string)

    Moves the uploaded file to a new file-system path.

    Declaration
    public virtual void MoveTo(Guid guid, string newpath)
    Parameters
    Type Name Description
    Guid guid
    string newpath

    OpenStream(Guid)

    Opens a readable stream for the specified uploaded file.

    Declaration
    public virtual Stream OpenStream(Guid guid)
    Parameters
    Type Name Description
    Guid guid
    Returns
    Type Description
    Stream

    Persist(Guid)

    Marks the uploaded file as persisted.

    Declaration
    public virtual void Persist(Guid guid)
    Parameters
    Type Name Description
    Guid guid

    Save(Guid, string, Stream)

    Saves the uploaded file contents from a stream.

    Declaration
    public virtual void Save(Guid guid, string filename, Stream stream)
    Parameters
    Type Name Description
    Guid guid
    string filename
    Stream stream

    Save(Guid, string, string)

    Saves the uploaded file contents from a temporary file path.

    Declaration
    public virtual void Save(Guid guid, string filename, string temppath)
    Parameters
    Type Name Description
    Guid guid
    string filename
    string temppath

    SaveInfo(UploadedFileInfo)

    Declaration
    protected void SaveInfo(UploadedFileInfo info)
    Parameters
    Type Name Description
    UploadedFileInfo info

    TrimToLength(Guid, long)

    Truncates the uploaded file to the specified length.

    Declaration
    public virtual void TrimToLength(Guid guid, long length)
    Parameters
    Type Name Description
    Guid guid
    long length

    UnPersist(Guid)

    Removes the persisted flag from the uploaded file.

    Declaration
    public virtual void UnPersist(Guid guid)
    Parameters
    Type Name Description
    Guid guid

    Implements

    IDisposable
    In this article
    Back to top AjaxUploader 5.0 API Reference