-
-
Notifications
You must be signed in to change notification settings - Fork 174
Dropzone
Martin Kluska edited this page May 8, 2018
·
7 revisions
| Package | View | Javascript | handler class |
|---|---|---|---|
| Website | Source | Source | DropZoneUploadHandler |
- Read the official docs
- Create the view as package requires
- 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,
// If true, the individual chunks of a file are being uploaded simultaneously.
parallelChunkUploads: true
});
// Append token to the request - required for web routes
myDropzone.on('sending', function (file, xhr, formData) {
formData.append("_token", token);
})