Docly Developers
Function Updated 30 May 2026

decodeFilename(filename)

Decode an encoded filename string by replacing ASCII code representations with symbols (not allowed in filenames). Reverse function of encodeFilename.

Parameters

filenamestringrequired

Filename to decode special chars.

Returns

Decoded filename, reverts all symbols in filename.

Example

Normal JavaScript, running in the browser or on the Docly™ server.
let decodedFilename = docly.decodeFilename(query.file1);