Skip to content

Instantly share code, notes, and snippets.

@markholdt
Last active January 8, 2016 09:40
Show Gist options
  • Save markholdt/9900f36bea6c3cce5c28 to your computer and use it in GitHub Desktop.
Save markholdt/9900f36bea6c3cce5c28 to your computer and use it in GitHub Desktop.
Dropzone with configuration
<script type="text/javascript">
Dropzone.autoDiscover = false;
$(function() {
// Now that the DOM is fully loaded, create the dropzone & configuration options
var myDropzone = new Dropzone('#my-dropzone', {
maxFilesize: 3.0,
maxFiles: 10,
parallelUploads: 1,
uploadMultiple: true,
autoProcessQueue: true
});
// and setup the on success event listeners
myDropzone.on("success", function (file) {
var value = $("#Files").val();
$("#Files").val(value + ';' + responsetext.Url);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment