NeatUpload Documentation

InputFile Class

File upload control that can be used with the UploadHttpModule and ProgressBar.

For a list of all members of this type, see InputFile Members.

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         Brettle.Web.NeatUpload.FileControl
            Brettle.Web.NeatUpload.InputFile
               Brettle.Web.NeatUpload.HashedInputFile
               Hitone.Web.SqlServerUploader.SqlServerInputFile

public class InputFile : FileControl, IPostBackDataHandler

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

On post back, you can use HasFile to determine whether a file has been uploaded and use FileName, ContentType, ContentLength, FileContent to access the file's name, MIME type, length, and contents. If you want to save the file for use after the current request, use the MoveTo method. This control will function even if the UploadHttpModule is not being used. In that case, its methods/properties act on the file in the standard ASP.NET Files collection.

Requirements

Namespace: Brettle.Web.NeatUpload

Assembly: Brettle.Web.NeatUpload (in Brettle.Web.NeatUpload.dll)

See Also

InputFile Members | Brettle.Web.NeatUpload Namespace