-
Hi, is it possible to do a chunked video upload with upload_media()? Is this supported? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @tvierb, I had actually never tried a chunked upload before. Your question prompted me to do it. I'm not sure chunked upload was available when I initially wrote the I successfully uploaded a large video with this code: chunked-media-upload.pl. (Well, the upload itself was successful, but Twitter rejected it because it was over the maximum time limit. Nonetheless, I got a good, final STATUS response so I'm confident the example code works.) It's likely not optimum, but it's the first working draft. For some reason, I couldn't get the I relied on Twitter's chunked media upload documentation and the @twitterdev python example. I'll likely add a more refined version of this in examples in an upcoming release. |
Beta Was this translation helpful? Give feedback.
Hi @tvierb,
I had actually never tried a chunked upload before. Your question prompted me to do it. I'm not sure chunked upload was available when I initially wrote the
upload_media
support. You have to make multipleupload_media
calls with commands INIT, APPEND, FINALIZE, and STATUS. That final call, with the current code, is a bit more verbose becauseupload_media
is defined as a POST while the STATUS command requires a GET request.I successfully uploaded a large video with this code: chunked-media-upload.pl. (Well, the upload itself was successful, but Twitter rejected it because it was over the maximum time limit. Nonetheless, I got a good, final STATUS response so I'm confident the …