Skip to content

File Upload widget with multiple file selection, drag&drop support, progress bars and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.

Notifications You must be signed in to change notification settings

wthinkit/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">

About

File Upload widget with multiple file selection, drag&drop support, progress bars and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 38.8%
  • HTML 30.7%
  • PHP 22.7%
  • Go 3.1%
  • Python 2.5%
  • CSS 1.9%
  • ApacheConf 0.3%