bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

ability to intercept Base64 dataURL images before upload (server overload) #69

Open jywarren opened 5 years ago

jywarren commented 5 years ago

We've seen some dataURL images pasted into posts and that can badly overload our database when it's saved as a string into a text record instead of uploaded separately.

Not sure if this will require code changes, but i'd like to intercept this if possible and upload via as normal images are!

jywarren commented 5 years ago

This could be doable in a similar fashion to: https://github.com/bevacqua/woofmark/issues/38

jywarren commented 5 years ago

At minimum a way to insert a filter to find these so we can do /something/ like show an alert, or prevent upload, or replace them with something.