Click or drag to resize

EAPUtilIsFileValidateAcceptType Method

Validates that a posted back file conforms to the specified ACCEPT types per the HTML INPUT FILE element's ACCEPT attribute. See http://www.w3schools.com/jsref/prop_fileupload_accept.asp for more information on accept.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static bool IsFileValidateAcceptType(
	HttpPostedFile postedFile,
	string accept
)

Parameters

postedFile
Type: System.WebHttpPostedFile
The posted-back file.
accept
Type: SystemString
The acceptable file types, comma separated if multiple. If blank/null all types are considered acceptable.

Return Value

Type: Boolean
True if the posted file is an acceptable type or null, else false.
See Also