Skip to content

Plupload

Martin Kluska edited this page Mar 23, 2018 · 4 revisions
Package View Javascript
Website Source Source
  1. Read the official docs
  2. Create the view as package requires
  3. Implement the basic dropzone code
// A quick way setup
var myDropzone = new Dropzone("#my-awesome-dropzone", {
    // Setup chunking
    chunking: true,
    method: "POST",
    maxFilesize: 400000000,
    chunkSize: 1000000
});

// Append token to the request - required for web routes
myDropzone.on('sending', function (file, xhr, formData) {
    formData.append("_token", token);
})