Duration too long, Maximim 30000

restapi
php
error-codes

#1

I am uploading media using the rest api and the (init/append/finalize) methods. I have received server 2XX responses for each method but when I use the new media_id on a post I get:
{ code: 324, message: Duration too long, Maximum 30000, atual: 165047 (MediaId: snf:742871451158470656)}.

The media uploads but I can’t use it in a post. What steps can I take to debug this error?


#2

@tech_e82 You have to pass the new media_category param in order to use longer videos (> 30 seconds).


#3