refactory-id / bootstrap-markdown

Bootstrap plugin for markdown editing
Apache License 2.0
1.99k stars 370 forks source link

Simple fix for correcting the path url for dropzone markdown images #259

Open webdevbrian opened 8 years ago

webdevbrian commented 8 years ago

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.

royduin commented 7 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.