Reputation: 51
I upload images via dropzone automatically and rename them during upload. I need to get the new filenames so I can send to database.
I have tried this, but keeps giving error:
Unexpected end of input
Dropzone.options.myDropzone = {
success: function( file, response ){
obj = JSON.parse(response);
},
}
Upvotes: 1
Views: 2817
Reputation: 51
Nevermind got a solution, I tried this instead
success: function( file, response ){
console.log(response);
},
Upvotes: 1