pub async fn clean_file_name(
file_name: String,
client_id: i32,
) -> Result<Text, Error>
Expand description
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously
ยงArguments
file_name
- File name or path to the fileclient_id
- The client id to send the request to