Open webdevbrian opened 8 years ago
It's an object when you make it an object. If you just return the filepath from your controller instead of an json object or something it's working perfectly. This fix isn't needed if you ask me.
Take a look at: http://www.dropzonejs.com/#event-success, the second argument is just the response from the server.
I don't know if this was changed or not with dropzone in their later versions from when this was first implemented, but the
path
is actually an object, thus we needpath.url
to correctly print the associated url for the file that was uploaded.