Rich Text editor removes picture problems
In some rich text editor inserts the picture will upload the picture to the server, but when the user has deleted the original picture to choose the new picture to upload, the picture did not delete on the server and the new picture is uploaded again, so the old picture is not and occupies the server resources. Can you use Ajax to delete old images when the user presses the DELETE key, or do you have any other methods or solutions?
Ask a big god like a blog to provide solutions.
------Solution--------------------
After uploading the image, you can save the image to the database.
Check to see if the picture changes when all the documents are in storage
Modifying the editor is also possible, but it is estimated that you do not have this water product
------Solution--------------------
Upload the image to do processing, after uploading, save the path to the database, and then do a picture management
------Solution--------------------
Upload file Success: 1. The Data table field saves the path of the uploaded picture image. 2. The file saved the upload image.
Delete operation:
1. Delete database field information directly.
2. Delete the picture under the Save folder (ulink file path).
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.