Skip to content

colorfield/vimeo_upload

Repository files navigation

Vimeo Upload

Javascript based upload to get a video URL from Vimeo without having to upload it on Drupal first. The result URL can then be used with Video Embed Field or Media Entity Vimeo.

Work in progress

Use case

  • When you want to improve AX, so authors do not have to connect to Vimeo and go back to Drupal.
  • When you do not want to store the video file on your server.

Related project

Vimeo field Uploader

Installation

1/ Install and enable this module as usual

composer require drupal/vimeo_upload

2/ Download this repository in the libraries directory.

You can download it via Drush

drush vimeo-upload-plugin (or alias drush vudl)

So you have /web/libraries/vimeo-upload/vimeo-upload.js

3/ Enable the module

drush en vimeo_upload

Configuration

Vimeo

  1. Create a Vimeo account
  2. Create a Vimeo app
  3. Request upload access for this application
  4. Generate access token for your application on the Authentication tab with following permissions: Public, Private, Edit, Upload.

Drupal

  1. Go to the Vimeo Upload configuration page /admin/config/services/vimeo_upload and set your access token.
  2. Upload a video via /admin/vimeo_upload/upload

Further integration with Video Embed Field and Media Entity Vimeo is on its way.

Roadmap

  • Configuration form with access token encryption
  • Global admin UI for video upload
  • Per field form formatter for Video Embed Field
  • Per field form formatter for Media Entity Vimeo