Search code examples
wordpressvimeovimeo-api

Direct upload of Video to Vimeo


I'm trying to upload directly to Vimeo from my computer in a Wordpress site using $lib->upload($_FILES["fileToUpload"]["tmp_name"], false); but it keeps failing. Plus it can't upload large files above 1MB,target is to allow users to upload upto 100MB in a single upload


Solution

  • Most of the conversation happened in the comments above, but I'm adding an answer here anyway.

    The video was being uploaded successfully, the problem was that the video was returning as "untitled".

    To edit a video you need to perform the API call $lib->request($video_uri, ['name' => $title], 'PATCH');, and ensure your token has the edit scope.