In this tutorial, we will show you how to store images and entries in MySQL without base 64 encoding. Base 64 encoding will bloat your database. The way I show you how to do it here will not bloat your database. You can download summernote here, however you do not need to download it for this tutorial.
In a previous post, I wrote some scripts that will upload your images to a folder immediately when dragged into the Summernote editor. What I did not include was the scripts to upload it to the upload folder and database. Let’s get started.
Setting Up MySQL for Summernote Entries
The first thing that you need to do, set up your MySQL database. Download this database file here. Bring up your PhpMyAdmin and select “import” then choose the file and upload it. I have some values entered into this database to get you started.
Now go to the next page to set up the files.