Skip to content

Instantly share code, notes, and snippets.

@santerref
Created November 23, 2017 15:22
Show Gist options
  • Save santerref/7ccaaca4b8790c56df10a6b870a94638 to your computer and use it in GitHub Desktop.
Save santerref/7ccaaca4b8790c56df10a6b870a94638 to your computer and use it in GitHub Desktop.
Mock DropzoneJS file
var mock_file = {name: 'myfile.png', size: 10000};
mock_file.status = Dropzone.SUCCESS;
mock_file.accepted = true;
this.emit("addedfile", mock_file);
this.emit("complete", mock_file);
this.files.push(mock_file);
@crustamet
Copy link

not working :(((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment