uploadSettings.urlEncodeFilenames Property HTML5/Flash Uploader JavaScript

Supported technologies:

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

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    uploadSettings: {
        //...other params...
        urlEncodeFilenames: false,
        //...other params...
    }
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').uploadSettings().urlEncodeFilenames(value);
value = $au.imageUploaderFlash('uploaderID').uploadSettings().urlEncodeFilenames();

Property Value

Type: 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.

Remarks

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

Reference