AjaxUploader
Search Results for

    Show / Hide Table of Contents

    Class FileUploadedEventArgs

    Provides metadata for a file that has been uploaded successfully.

    Inheritance
    object
    EventArgs
    FileUploadedEventArgs
    Inherited Members
    EventArgs.Empty
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: AjaxUploader.Events
    Assembly: AjaxUploader.dll
    Syntax
    public class FileUploadedEventArgs : EventArgs

    Constructors

    FileUploadedEventArgs()

    Initializes a new instance of the FileUploadedEventArgs class.

    Declaration
    public FileUploadedEventArgs()

    Properties

    ContentType

    Gets or sets the detected content type.

    Declaration
    public string ContentType { get; set; }
    Property Value
    Type Description
    string

    FileGuid

    Gets or sets the stored GUID for the uploaded file.

    Declaration
    public Guid FileGuid { get; set; }
    Property Value
    Type Description
    Guid

    FileName

    Gets or sets the original file name.

    Declaration
    public string FileName { get; set; }
    Property Value
    Type Description
    string

    FileSize

    Gets or sets the uploaded file size in bytes.

    Declaration
    public long FileSize { get; set; }
    Property Value
    Type Description
    long

    RelativePath

    Gets or sets the sanitized folder-relative path ('photos/2026/a.jpg') when the file came from a folder drop or directory-picker selection; null for plain files. Safe to combine under a fixed destination root to recreate the client's folder tree: Path.Combine(root, e.RelativePath.Replace('/', '\')).

    Declaration
    public string RelativePath { get; set; }
    Property Value
    Type Description
    string

    Methods

    CopyTo(string)

    Copies the uploaded file to destinationPath, leaving the stored copy in place.

    Declaration
    public void CopyTo(string destinationPath)
    Parameters
    Type Name Description
    string destinationPath

    GetTempFilePath()

    Returns the full path of the stored temporary file, or null when the file is gone or the configured provider is not file-system backed.

    Declaration
    public string GetTempFilePath()
    Returns
    Type Description
    string

    MoveTo(string)

    Moves the uploaded file to destinationPath, removing it from temporary storage.

    Declaration
    public void MoveTo(string destinationPath)
    Parameters
    Type Name Description
    string destinationPath

    OpenStream()

    Opens the uploaded file's stored data for reading. The caller is responsible for disposing the returned stream.

    Declaration
    public Stream OpenStream()
    Returns
    Type Description
    Stream
    In this article
    Back to top AjaxUploader API Reference