Premium Only Content

Delete Images Off Server In Summernote with php, mysql, jquery, and ajax
00:00 Summernote Delete Image Issues
01:15 Test File
01:34 Demonstration Of What You Will Learn
02:45 The problem of Images On Server but not in Database
03:50 Another Example of The Problem
04:35 Solution To Problem
05:20 Optimize Images At The Same Time
05:40 Example Of Compressing Large Image
07:50 Script That Makes This Happen
09:00 Extracting Images From HTML
12:30 Conclusion
Summernote is a popular WYSIWYG editor that allows users to create rich text content with ease. However, when users upload images using Summernote, these images are stored on the server. Over time, these images can take up a lot of space on the server, so it's important to have a way to delete them when they're no longer needed.
To see and copy the codes please see my website post https://a1websitepro.com/delete-images-off-server-in-summernote-with-php-mysql-jquery-and-ajax/
Here's a step-by-step guide on how to delete images from the server in Summernote using PHP, MySQL, jQuery, and AJAX.
Step 1: Create a database table
First, we need to create a database table to store information about the images. We'll call this table "images" and it will have the following columns:
id (integer, primary key)
name (varchar)
path (varchar)
created_at (datetime)
We'll use this table to keep track of the images that have been uploaded to the server.
Step 2: Modify Summernote to store image information in the database
When a user uploads an image using Summernote, we need to store information about the image in the database. To do this, we'll modify Summernote's image upload function to send an AJAX request to a PHP script that will store the image information in the database.
Step 3: Create a PHP script to delete images from the server
Now that we have a way to store image information in the database, we need to create a PHP script to delete images from the server.
Step 4: Create a PHP script to handle AJAX requests
We need a PHP script to handle AJAX requests to delete images from the server.
Step 5: Add a delete button to the editor
Now that we have everything set up on the backend, we need to add a way for users to delete images from the server. We'll add a delete button to the editor that users can click to delete an image.
#summernote #php #delete
@PHP
https://www.facebook.com/pages/A1WebsitePro/139087542802830
https://www.twitter.com/a1websitepro
https://www.linkedin.com/in/maximus-mccullough-78950150/
https://pinterest.com/a1websitepro
https://www.instagram.com/maximusmcculloug/
https://www.tumblr.com/blog/a1websitepro
-
7:44
Computer Programming, Web Development, Tech Support, WordPress
1 year agoEdit Images now on the Life Home and Business Inventory Application
118 -
1:01:40
HotZone
6 days ago $6.34 earned"Prepare for WAR" - Confronting the URGENT Threat to America
63.1K16 -
20:23
Scammer Payback
11 hours agoTerrifying Scammers with File Deletions
35.9K9 -
16:22
The Gun Collective
7 hours agoWOW! 17 New Guns JUST GOT RELEASED!
44.2K10 -
1:13:57
Glenn Greenwald
8 hours agoYoung Men and Online Radicalization: Dissecting Internet Subcultures with Lee Fang, Katherine Dee, and Evan Barker | SYSTEM UPDATE #516
178K72 -
1:14:57
Sarah Westall
5 hours agoCEO of Crowds on Demand: The Fake World of Social Media, Protests & Movements w/ Adam Swart
61.1K9 -
4:03:25
Geeks + Gamers
8 hours agoTuesday Night's Main Event
78.5K2 -
40:36
RiftTV
7 hours agoHow We Got 400 Leftists FIRED for MOCKING Charlie Kirk | The Rift | Guest: Olivia Krolczyk
77.4K61 -
1:28:58
Badlands Media
21 hours agoBadlands Story Hour Ep 134: Godzilla Minus One
46.3K8 -
1:33:43
Patriots With Grit
16 hours agoWrongful Death Without Consequences: Inside the Schara Trial | Scott Schara
24.9K1