Home Forums General Issues Limit file type on File Upload


Limit file type on File Upload

    • codynew

    • October 9, 2013 at 10:00 pm

    Hi, I’m struggling a bit on this one and hope you can help with some advice or guidance 🙂

    I want to allow users the ability to upload a file but I want to restrict it to a specific file type.

    So for example

    I want customers to upload two files.
    One ACF file upload field would be for a .png file.
    One ACF file upload field would be for a .pdf file.

    At the moment we can only seem to upload any file type (which goes into the media libarary).

    Any ideas or tips please?

    • Elliot

    • October 11, 2013 at 12:40 pm

    Hi @codynew

    Currently, I don’t have a solution for this, but I wonder if google may reveal someones code which could help you achieve the filter.

    ACF uses the exact same javascript uploader as WordPress, so if someone has written about a solution, you will most likely be able to integrate it with ACF

    If you do find a solution, it would be great if you could link us to it to help future readers

    Sorry I can’t be of much help on this one.


  • Was a solution ever found for this? I have the same issue.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.