Created
May 13, 2017 09:17
-
-
Save ostearn/bc3d803471dc0cd2d8d28a8b793ac09d to your computer and use it in GitHub Desktop.
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
$("#my-awesome-dropzone").dropzone({ | |
url: "upload-files.php", | |
maxFilesize: 2, | |
acceptedFiles: ".txt", | |
sending: function (file, xhr, formData) { | |
var sider = $("#side").val(); | |
var deckName = $("#deckname").val(); | |
formData.append("filename", deckName); | |
formData.append("side", sider); | |
}, | |
success: function( something, data ) { | |
window.open( data ); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment