Skip to content

Instantly share code, notes, and snippets.

View nedga055's full-sized avatar

Nick Edgar nedga055

View GitHub Profile
@nedga055
nedga055 / example-usage.js
Last active March 25, 2016 14:37
Backbone Marionette View and Template for file uploads using Plupload. Requires Plupload (http://www.plupload.com/).
// Add this to the onRender() of the view you want to add your file upload to
// The options passed in will override the default Plupload options
// (http://www.plupload.com/documentation.php)
this.fileUploadView = new FileUploadView({
el: '#upload-container',
url: 'upload.php',
successMessage: 'Your file uploaded successfully.'
});
this.fileUploadView.render();