WebImage.GetImageFromRequest Method

Returns an image that has been uploaded using the browser.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

public static WebImage GetImageFromRequest(
	string postedFileName


Type: System.String
(Optional) The name of the file that has been posted. If no file name is specified, the first file that was uploaded is returned.

Return Value

Type: System.Web.Helpers.WebImage
The image.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.