Custom Fields
Re-Envisioned
Support MB User Meta Error : "Invalid File" when delete image - Custom Field - User - Type : Image

  • Creator
    Topic
  • #30478
    justdoit123
    Participant

    In Custom Field for User - Type : Image.
    I set limit 3 images and checked: Force delete

    When i choose and upload an Image and Save, it show thumbnail, it worked.

    but when i press X to delete that image.

    it alert and not delete the image :: Error : Invalid File

    Please see screenshot: https://vm.d.pr/wHQ8Jv

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #30491
    Long Nguyen
    Moderator

    Hi,

    I do not experience that issue on my end. It is possible the image was deleted and was not removed in a short time and you click button X one more time. Please try to follow the Debugging Information step https://metabox.io/support/topic/how-to-create-a-new-topic/ and test this function again.

    #30515
    justdoit123
    Participant

    hi, i tried in many hosting to VPS.

    Please login here and see:

    https://metaboxtest.tastewp.com/wp-admin/profile.php
    (removed)

    this is just a test site, please go to : wp-admin/profile.php

    and scroll down to meta Image. Click x to delete an image and an alert will appear

    #30516
    justdoit123
    Participant

    i tested with admin role, editor, author role, same error, when i press X to delete that image.

    it alert and not delete the image :: Error : Invalid File, cannot delete image after save.

    #30518
    Long Nguyen
    Moderator

    Hi,

    Thank you for your feedback.

    You can still delete the images but it shows the wrong message, screen record https://share.getcloudapp.com/eDuRRXeR

    This issue might happen when the image field is a subfield inside a group. I will inform the development team to fix this in the next update.

    #30519
    justdoit123
    Participant

    Hi, it is only deleted in front, images are still there in Media : /wp-admin/upload.php

    #30520
    justdoit123
    Participant

    if i choose Image Advanced or Image upload, they will be deleted in Media too.

    btw, can you add this feature to : Image Advanced or Image upload : real limit on choosing maximum images, i can still choose more than maximum and upload it to Media, Your limit only for frontend show up thumbnail.

    #30529
    Long Nguyen
    Moderator

    Hi,

    Please use the field image or file as a top field, not a subfield to delete images/files when clicking "X" button. This issue will be fixed in the next update.

    Regarding the feature limit images on select, I will inform the development team to explore the possibility.

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