Support » Plugin: SVG Support » File cannot be uploaded for security reasons

  • Resolved gilord


    Hi there,

    Thank you for your plugin.

    The support team of the theme I work with recommended your plugin to me.
    Your idea is great, but I’m having the same issue I had before activating the plug-in. When I try to upload an SVG file I get the following message:

    “File cannot be uploaded for security reasons”.

    I’m using:
    WordPress 4.8
    SVG Support 2.3.10
    link to my site

    If you could tell me what am I doing wrong, it would be great.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Benbodhi



    It sounds like something else is conflicting and it’s usually a theme, but could be another plugin.
    Please deactivate all other plugins and revert to the twentyseventeen theme and test again.
    Then reactivate everything one by one, testing an upload of your SVG file in between each activation to find the culprit.
    I’ll be interested to find out where the issue is.

    Thanks for your support and using my plugin.


    Sorry it took me so long to answer, I didnt got notify via email for some reson

    Anyway, I did what you suggested (deactivate all other plugins and revert to the twentyseventeen) and I still get the same security masage.

    I also tried to erace the SVG plugin and reinstal it again, but still, same error.

    is there any other practice you think I can do in order to solve this issue?


    Plugin Author Benbodhi


    Hi there,

    If you are using the standard twentyseventeen theme and only my plugin is active and no others, and it still isn’t working, it may be a hosting issue.

    It’s hard to tell without looking at the errors you’re getting.

    Feel free to send me temporary admin logins to and I’ll see if I can track down your issue.

    I sent you

    Plugin Author Benbodhi


    So it turns out that it was the SVG file itself.
    I’m not sure exactly why, but sometimes encoding and doctype declarations at the top of the file can cause issues. These lines are safe to delete.
    I usually just use the code from <svg> to </svg>.

    The lines in this file for reference were:

    <?xml version='1.0' encoding='iso-8859-1'?>
    <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' ''>

    Thanks for your support and using my plugin 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘File cannot be uploaded for security reasons’ is closed to new replies.