DropZoneFileEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Describes a queue, click, validation, progress, or completion event for a single file.
- C#
- VB.NET
public class DropZoneFileEventArgs : EventArgs
Public Class DropZoneFileEventArgs
Inherits EventArgs
UploadedFile is available only during UploadCompleted. Read or copy its stream synchronously in that handler. No file is saved automatically. Removing a queue entry does not delete any copy saved by application code.
Example:
zone.UploadCompleted += (s, e) => {
using var copy = new System.IO.MemoryStream();
e.UploadedFile.InputStream.CopyTo(copy);
};
Properties
File
DropZoneFile: Gets the affected file metadata.
Loaded
Int64: Gets uploaded file bytes, excluding multipart overhead, clamped to File.Size.
Message
String: Gets the validation or failure message; empty for successful events.
UploadedFile
HttpPostedFile: Gets the received file only during UploadCompleted; otherwise null.