Skip to content

kaltura/jQuery-File-Upload

 
 

Repository files navigation

Kaltura jQuery File Upload Plugin

Demo

Demo File Upload

Upstream

For more detailed feature overview see the upstream JQuery-File-Upload project

Sample Usage

The following will upload files directly to your Kaltura account from the client. Note that you'll need to start a Katura Session first.

<script src="/js/vendor/jquery.ui.widget.js"></script>
<script src="/js/jquery.fileupload.js"></script>
<script src="/js/jquery.fileupload-kaltura.js"></script>
<script type="text/javascript">
  var setupUpload = function() {
    file = $('input[name="fileData"]').fileupload({
      apiURL:'http://www.kaltura.com/api_v3/',
      url: 'http://www.kaltura.com/api_v3/?service=uploadToken&action=upload&format=1',
      ks: client.ks,
      singleFileUploads:true,
      dataType: 'json',
      autoUpload: true,
      done: function(e, data) {
        console.log('fileupload done', e, data);
      },
    });
  };
  $(document).ready(setupUpload);
</script>
<label>Video to Upload</label>
<input type="file" name="fileData">

Packages

No packages published

Languages

  • JavaScript 62.8%
  • HTML 18.7%
  • PHP 13.8%
  • Go 1.9%
  • Python 1.5%
  • CSS 1.1%
  • ApacheConf 0.2%