pub async fn upload<S: Into<String>>(
file_path: S,
time: u8
) -> Result<String, Box<dyn Error>>
Expand description
Upload a temporary file to litterbox. Max size 1GB.
See https://litterbox.catbox.moe/faq.php for allowed formats and content.
Arguments
file_path
- Path to the file to be uploadedtime
- Time until expiration. Valid values are 1, 12, 24 and 72.