decodeFilename(filename) Last updated: 30. May 2026

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

Parameters

Name Type Description
filename string

Filename to decode special chars.

Returns

Decoded filename, reverts all symbols in filename.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
let decodedFilename = docly.decodeFilename(query.file1);