Following the build and HTML form from the Vimeo docs I managed to properly upload a video, but, as setting the video properties/metadata is not allowed before the upload is completed I require that some parameters are returned to me.
The docs state:
We will retain any parameters you have provided, and add one new parameter video_uri.
But they fail to return anything other than the video_uri
.
My form is composed of this name
, privacy.view
and the file
:
(Prestashop-smarty tpl
)
<input type="hidden" name="privacy.view" value="nobody">
<input maxlength="20" class="is_required validate form-control" type="text" id="contentName"
name="contentName" value="" required/>
<input type="file" name="file_data" id="exampleInputFile">
<a href="{$smarty.server.HTTP_REFERER}" class="btn btn-default volver">CANCELAR</a>
<button type="submit" name="submitFileContent" class="btn btn-default save-profile">
GUARDAR
</button>
</form>
I expected Vimeo to return video_uri
, name
and privacy.view
but it's only returning the last one.
I really appreciate any help you can provide.
Edit: I'm passing my own url as the "redirect_url" so no further redirects are being done after vimeo sends the user back to me.
Just in case it can provide anything to the troubleshooting here is the request:
$response = $lib->request('/me/videos', array('redirect_url' => Tools::getHttpHost(true).__PS_BASE_URI__."filecontent"), 'POST');