egg-mode icon indicating copy to clipboard operation
egg-mode copied to clipboard

fix media upload in create_tweet example

Open dwrensha opened this issue 3 years ago • 3 comments

Fixes #125.

If handle.progress is None, as it commonly is for image uploads, then get_status() will return a 404, so we need to check it before calling get_status().

I tested that this works both with an image upload, where progress is None, and a video upload, where progress is non None.

dwrensha avatar Sep 13 '22 19:09 dwrensha

I have tested it. It's work fine. Thanks.

OneSecure avatar Sep 14 '22 01:09 OneSecure

What would the reason be for that modification to Cargo.toml? Does cargo build --example create_tweet not work?

dwrensha avatar Sep 14 '22 01:09 dwrensha

Sorry I'm newbee in rust.

OneSecure avatar Sep 14 '22 01:09 OneSecure