In Rails, where you POST to here, the way you passed in JSON is weird. I spent a long time try to see how to get id and size here. id and size were undefined. If you check Rails, you will see I change it to only pass in id and video. Can you check and see how to access id and video size when the req.body was JSON.