UploadSettings.UrlEncodeFilenames Property HTML5/Flash Uploader ASP.NET

Supported technologies: HTML 5

Specifies whether to apply URL encoding to filenames uploaded by the uploader.

Namespace: Aurigma.ImageUploaderFlash
Assembly: Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)


public bool UrlEncodeFilenames { get; set; }

Property Value

Type: System..Boolean

If true, the uploader will URL-encode filenames in the POST request (including SourceName_N variable). After you decode them, you will get a correct UTF-8 string.

Default value is false.


This property may be helpful if your server incorrectly accepts files with non-ASCII names. In this case, just set it to true and use URL decoding when reading those file names from the request.

When this property is true, the uploader sends the FilenamesUrlEncoded POST field set to true. This way you can add the code to your server side script which determines if the filenames require pre-processing (URL decoding).

See Also