Created
November 23, 2017 15:22
-
-
Save santerref/7ccaaca4b8790c56df10a6b870a94638 to your computer and use it in GitHub Desktop.
Mock DropzoneJS file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working :(((