Last updated

cpUploadUI

Provides a user-friendly interface for uploading video files via a drag-and-drop widget or upload button—no coding needed for the user.

upload-ui

Include the Script

Add this <script> tag to your HTML page to load the uploader UI:

<script type="text/javascript" data-lazy-type="iframe" data-src="//wwwcdn.cincopa.com/_cms/ugc/uploaderui.js"></script> 

Initialize the UI

var uploaderUI = new cpUploadUI(element, options);uploaderUI.start(); 

Parameters

  • element: The HTML container where the uploader will appear (e.g., a <div>).
  • options: An object for customization settings, such as:
    • upload_url: The destination to send the uploaded video.
    • theme_color: Customize the widget appearance.

Callable Methods

  • start() - Renders the uploader widget inside the selected element.