What is the proper way to add article images to database?
The rich text editor I am currently using is Quill.js. It provides a simple way to retrieve html content, and my question is how to retrieve the image to upload within the html to store in database?
That's cool, so it is stored in the cloud? I've try to look up some of them, and cloudinary seems pretty reliable, but pricey. Do you happen to know if there is any opensource ones?
well a cdn is basically a cloud yes. I know there are several ones who support opensource (basically pushing their own google rating up with "natural" links).
but I don't know any for free. you could try cloudflare the free package as a reverse proxy this should help your system if you have load problem.
You could just use nginx or another static lightweight server. so the images will be delivered by it. if you already switch them to another subdomain it's easy to change it to a cdn afterwards. (cdn.mydomain.com) or something
j
stuff ;)
I perfer cdns so the image is not stored in the database but the name of the image is stored.
That allows you to scale without needing to hit the database for every image :)