bootstrap-markdown
bootstrap-markdown copied to clipboard
Simple fix for correcting the path url for dropzone markdown images
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 need path.url to correctly print the associated url for the file that was uploaded.
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.