• Resolved brkard4141

    (@brkard4141)


    Hello.
    We are adding an image with a form. Later, we are adding the same image to another post with the form. Then, when we delete this image, it gets removed from all posts and the media library. So, when we attach the same image multiple times, it doesn’t create copies, and when the image is deleted, it is completely removed. Is there a bug here, or is there a different setting?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Saiful Islam

    (@saifislam01)

    Hi @brkard4141,

    Thank you for raising your concern.

    Please note that when you upload an image via the WP User Frontend form, the image is stored in the WordPress Media Library. By default, WordPress doesn’t create duplicates of the same file. Instead, it uses a single instance of the file in the Media Library and references it in multiple posts.

    When you delete an image from the Media Library, it is permanently removed from the system. This behavior is not specific to the WP User Frontend plugin—it’s how WordPress manages media files.

    This behavior is not a bug but the intended functionality of WordPress media management. The WP User Frontend plugin uses the WordPress Media Library system, so it inherits this behavior.

    Hope this information will help.

    Thread Starter brkard4141

    (@brkard4141)

    The problem is when you want to remove image or change image with wpuf form , for example featured image, wpuf form deletes images from media library completely. In wordpress when you want to remove featured image from post it does not delete image. You can only delete image wfrom media library.

    So i need an option like, not delete image from media library when image deleted with wpuf.

    Can we do that ?

    Thanks.

    • This reply was modified 1 month, 3 weeks ago by brkard4141.
    Plugin Support Saiful Islam

    (@saifislam01)

    Hi @brkard4141,

    By default, WordPress does not delete images from the media library when removing a featured image. However, WPUF’s form functionality currently removes the associated media file when an image is replaced or removed. Unfortunately, the plugin does not have a built-in setting to prevent this behavior at the moment. To address this, you can customize the plugin’s behavior using custom development.

    Hope you understand.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.