pub async fn get_file_extension(
mime_type: String,
client_id: i32,
) -> Result<Text, Error>
Expand description
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously
ยงArguments
mime_type
- The MIME type of the fileclient_id
- The client id to send the request to