EncodeFilename(filename) Last updated: 23. Oct 2024
Encode a filename by replacing characters not allowed in filenames with their ASCII code representations. Reverse function of DecodeFilename.
Parameters
Name | Type | Description |
---|---|---|
filename | string | Filename to encode special chars. |
Returns
Encoded filename, removes all symbols from filename.
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.let encodedFilename = docly.encodeFilename(query.file1);