Question: Restrict Mime Type(s) for Fiel/Image uploads

Support General Question: Restrict Mime Type(s) for Fiel/Image uploadsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28169
    Austin PassyAustin Passy
    Participant

    Is there a way to restrict the mime type for any upload field, including auto filtering of mime type in the media library on popup?

    For example, I would like to use the single_image field, and only allow PNGs in this field.

    #28180
    Long NguyenLong Nguyen
    Moderator

    Hi Austin,

    You can use the filter upload_mimes to restrict file type when uploading to the media library.

    But use this filter for a specific field, is not possible.

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