System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object

The class provides access to all the files that are uploaded from a client as a file collection. The class provides properties and methods to get information about an individual file and to read and save the file.

The control can be used to select and upload files from a client.

Files are uploaded in MIME multipart/form-data format. By default, all requests, including form fields and uploaded files, larger than 256 KB are buffered to disk, rather than held in server memory.

You can specify the maximum allowable request size by accessing the property or by setting the maxRequestLength attribute of the httpRuntime Element (ASP.NET Settings Schema) element within the Machine.config or Web.config file. The default is 4 MB.

The amount of data that is buffered in server memory for a request, which includes file uploads, can be specified by accessing the property or by setting the requestLengthDiskThreshold attribute of the httpRuntime Element (ASP.NET Settings Schema) element within the Machine.config or Web.config file.

By adjusting the and properties, you can fine tune the performance of your server. Additionally, you should consider setting the to prevent denial of service attacks caused by users posting large files to the server.

Server resources that are allocated to buffer the uploaded file will be destroyed when the request ends. To save a durable copy of the file, use the method.

Provides access to individual files that have been uploaded by a client.

- Property
  System.Int32 To be added: an object of type 'int' To be added

  Gets the size of an uploaded file, in bytes.

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets the MIME content type of a file sent by a client.

  1.0.5000.0
  2.0.0.0
- Property
  System.String To be added: an object of type 'string' To be added

  Gets the fully qualified name of the file on the client.

  1.0.5000.0
  2.0.0.0
- Property
  System.IO.Stream a To be added

  Gets a object that points to an uploaded file to prepare for reading the contents of the file.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void ``

  The maximum size allowed for a request, which includes uploaded files, is 4 MB, by default. Maximum request size can be specified in the Machine.config or Web.config file in the maxRequestLength attribute of the httpRuntime Element (ASP.NET Settings Schema) element. The maximum request size for a specific page can be specified using the location Element (ASP.NET Settings Schema) element in a Web.config file.

  Saves the contents of an uploaded file.

  The name of the saved file. 1.0.5000.0 2.0.0.0