Function catbox::file::from_url

source ·
pub async fn from_url<S: Into<String>>(
    url: S,
    user_hash: Option<S>
) -> Result<String, Box<dyn Error>>
Expand description

Upload contents from an URL to catbox

Returns an URL to the file

See https://catbox.moe/faq.php for allowed formats and content.

Arguments

  • url - URL to file
  • user_hash - User’s account hash, required for deleting. (Optional)