get_file_extension

Function get_file_extension 

Source
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 file
  • client_id - The client id to send the request to