rleecrewmp's avatar

Vimeo Put/Stream Uploading

I am just about ready to give up on the subject but I thought I'd make a last ditch effort here on the forums. I'm working with Guzzle and the Vinkla\Vimeo package to get this to work but I cannot seem to understand how to fit all of it together.

https://developer.vimeo.com/api/upload#http-put-uploading

That's the link to their put uploading API. The problem I've come across now is that when I submit a form with a file field, Request::file() returns the file object but with only the title and a size of 0. So far, I'm testing with a small file because I can't seem to up my max_upload_size on my homestead server. Can anyone with experience in the area give me an idea of how to get started with put uploading to Vimeo with Laravel?

EDIT: I've come to find out that the file still exceeds my upload_max_filesize which allowed the form to go through but not the file upload. Does put uploading require the file to be uploaded to my server first and then streamed to Vimeo? Maybe I'm not fulling understanding how the concept works.. Help please!

0 likes
3 replies
bashy's avatar

Not really familiar with that part of Vimeo but I believe it's client to Vimeo? Have you setup the form data?

michaeldyrynda's avatar

When you open your form, make sure you tell it that you're accepting files so it handles the multipart stuff.

{!! Form::open([ 'url' => 'foo/bar', 'files' => true, ]) !!}
rleecrewmp's avatar

Because of the upload_max_filesize problem, I've decided to go with a Javascript put request method which brings about other issues but not related to Laravel.

Please or to participate in this conversation.