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




public function getUrlEncodeFilenames() {

public function setUrlEncodeFilenames($value) {

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.


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).