Home Forums ACF PRO ACF: Allow SVG upload for image field


ACF: Allow SVG upload for image field

    • MrT

    • February 7, 2019 at 2:17 am

    How do I allow uploading SVG images in specific image fields?

    I have made an image field and put in “svg” as allowed file type, but I still get this error message when trying to upload an image:

    “Sorry, this file type is not permitted for security reasons.”

    I know that WordPress has disabled SVG uploads by default of security reasons (which is good). However, the image field I want to upload to, is only accessed by administrators so it should be safe to allow svg uploads in this instance

    • MrT

    • February 7, 2019 at 2:56 am

    Even installing one of the SVG plugins makes it possible to upload SVG files to image fields

  • It requires altering the allowed mime types in WP. ACF does not do this for you.

    The reason that adding a plugin for SVG images is working is because that plugin in making the needed changes

    An SVG example is given here

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.