WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Unable to delete file uploaded with file type (7 posts)

  1. maxi032
    Member
    Posted 1 year ago #

    If I upload a file using the file type field I am unable to delete the item from the pods item page. The relation between the item and the uploaded file breaks only if I go to media library and delete the file manualy.
    If I press Add file 10 times and add the same file I end up having 10 files on the pods item page even if the file type is single file.
    My expectation was to have the first file erased every time I click on Add file

    http://wordpress.org/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    What settings do you have set for your file field under the 'Additional Field Options' tab in the field editor?

    And what version of Pods are you using?

  3. maxi032
    Member
    Posted 1 year ago #

    Thank you for your quick reply.
    Under additional field options I have:

    Field type: Single select
    File uploader: Attachments (WP Media Library)
    Attachments Default tab: upload file
    Editable title: yes
    Restrict file type: other
    File extensions: pdf,doc,docx

  4. maxi032
    Member
    Posted 1 year ago #

    I am using Pods 2.3.8

  5. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    The field can only accept one upload, but you can upload as many files as you'd like into the media library itself, which is what that popup you're seeing is. Alternatively, you can use the 'Plupload' option, which is only an uploader, no media library popup.

    There are no options for customization of the media library popup's ability to upload a specific number of files. But there are options for limiting the number of files that can be 'selected', which is what it currently does. Let me know if you have any other questions.

  6. Tim Harrington
    Member
    Posted 8 months ago #

    I'm having the same issue that maxi032 described. It's not a matter of how many files can be uploaded, but rather the ability to remove them from the pods item afterward.

    Using pods, I created a custom post type called "artists" and one of the fields uploads an image for a sample image of each artist's work. If I edit an artist's entry after creating it I can add a new image but it won't remove/replace the previous one. Suggestions?

  7. esmi
    Forum Moderator
    Posted 8 months ago #

    @Tim Harrington: If you require assistance then, as per the Forum Welcome, please post your own topic. This topic references an old version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic