Rich Text Editor Delete picture related issues

Source: Internet
Author: User
Tags delete key
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).
  • Related Article
    Large-Scale Price Reduction
    • 59% Max. and 23% Avg.
    • Price Reduction for Core Products
    • Price Reduction in Multiple Regions
    undefined. /
    Connect with us on Discord
    • Secure, anonymous group chat without disturbance
    • Stay updated on campaigns, new products, and more
    • Support for all your questions
    undefined. /
    Free Tier
    • Start free from ECS to Big Data
    • Get Started in 3 Simple Steps
    • Try ECS t5 1C1G
    undefined. /

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.