Re: Port Vimeo Upload PHP POST Request to ColdFusion

55 views
Skip to first unread message
Message has been deleted

Brian G

unread,
Apr 25, 2012, 1:44:46 PM4/25/12
to cfr...@googlegroups.com
// Generate the OAuth signature
$params = array_merge($params, array(
'oauth_signature' => $this->_generateSignature($params, 'POST', self::API_REST_URL),
'file_data'       => '@'.$chunk['file'] // don't include the file in the signature
));

but I realize I need to do something a little different in order to send the file. cURL just seems to use 'file_data' => '@'.$chunk['file'], setting the file_data param to the file name with the @ symbol in front, and that's obviously not going to

Greg, apologies that it took me two days to approve your post - first time posters are moderated due to spam.

You might consider changing this slightly to instead use the Vimeo streaming upload option:


Looks like you just change the method to PUT and send the file to the ticket URI that you get back.

Otherwise, you need to build a multipart form submission.  Here's some notes from Ben Nadel that may help:



Brian
Reply all
Reply to author
Forward
0 new messages