Support » Plugin: SVG Support » Some files not allowed to upload?

  • Resolved huug

    (@huug)


    I have a bunch of icons and one specifically can’t be uploaded. I’ve checked the markup and nothing seems to be wrong?

    <?xml version='1.0' encoding='iso-8859-1'?>
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 470 470" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 470 470">
      <g>
        <path d="m126.184,358.951c19.299,0 35-15.701 35-35s-15.701-35-35-35-35,15.701-35,35 15.701,35 35,35zm0-55c11.028,0 20,8.972 20,20s-8.972,20-20,20-20-8.972-20-20 8.971-20 20-20z"/>
        <path d="m343.816,288.951c-19.299,0-35,15.701-35,35s15.701,35 35,35 35-15.701 35-35-15.701-35-35-35zm0,55c-11.028,0-20-8.972-20-20s8.972-20 20-20 20,8.972 20,20-8.971,20-20,20z"/>
        <path d="m137.5,116.049h23.779c4.143,0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-23.779c-10.423,0-27.031,7.176-34.177,14.767l-60.088,63.845c-2.051,2.179-2.609,5.368-1.423,8.115 1.187,2.747 3.893,4.525 6.885,4.525h290.271c2.562,0 4.945-1.307 6.323-3.467 1.377-2.159 1.558-4.873 0.478-7.195l-30.854-66.365c-3.315-7.046-14.628-14.225-22.415-14.225h-101.221c-4.143,0-7.5,3.358-7.5,7.5l-.001,68.752h-117.722l48.19-51.204c4.243-4.508 17.066-10.048 23.254-10.048zm61.279,0h93.7c2.203,0.103 7.842,3.681 8.849,5.581l25.883,55.671h-128.433l.001-61.252z"/>
        <path d="m470,257.692c0-26.631-20.555-55.149-45.819-63.57-0.017-0.006-35.078-11.693-35.078-11.693-5.854-1.951-13.576-8.812-16.203-14.394l-30.84-65.535c-8.299-17.636-30.068-31.451-49.56-31.451h-155c-18.639,0-43.247,10.632-56.022,24.206l-69.158,73.482c-6.909,7.34-12.32,20.984-12.32,31.064v94.15c0,20.678 16.822,37.5 37.5,37.5h14.06c3.775,37.846 35.8,67.5 74.624,67.5s70.849-29.654 74.624-67.5h45.509c4.143,0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-45.509c-3.775-37.846-35.8-67.5-74.624-67.5s-70.849,29.654-74.624,67.5h-14.06c-12.406,0-22.5-10.093-22.5-22.5v-94.15c0-6.294 3.929-16.2 8.242-20.783l69.159-73.483c9.941-10.563 30.594-19.486 45.099-19.486h155c13.682,0 30.162,10.458 35.987,22.838l30.84,65.535c4.421,9.395 15.182,18.955 25.031,22.238l28.498,9.499c-0.492,2.841-0.748,5.729-0.748,8.642 0,25.238 18.65,46.198 42.892,49.831v29.32c0,12.407-8.357,22.5-18.631,22.5h-17.929c-3.775-37.846-35.8-67.5-74.624-67.5-41.355,0-75,33.645-75,75s33.645,75 75,75c38.824,0 70.849-29.654 74.624-67.5h17.929c18.544,0 33.631-16.822 33.631-37.5v-36.26zm-343.816,6.259c33.084,0 60,26.916 60,60s-26.916,60-60,60-60-26.916-60-60 26.916-60 60-60zm217.632,120c-33.084,0-60-26.916-60-60s26.916-60 60-60 60,26.916 60,60-26.916,60-60,60zm83.292-169.15c0-0.969 0.04-1.934 0.117-2.893 13.16,7.627 23.787,22.37 26.864,37.266-15.466-3.785-26.981-17.756-26.981-34.373z"/>
      </g>
    </svg>
    

    Have you seen this happen before? I’m getting the usual WordPress upload not allowed message.

    Regards, Hugo

Viewing 1 replies (of 1 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    Firstly, thanks for your support 🙂

    Just remove your first line and it works fine:

    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 470 470" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 470 470">
      <g>
        <path d="m126.184,358.951c19.299,0 35-15.701 35-35s-15.701-35-35-35-35,15.701-35,35 15.701,35 35,35zm0-55c11.028,0 20,8.972 20,20s-8.972,20-20,20-20-8.972-20-20 8.971-20 20-20z"/>
        <path d="m343.816,288.951c-19.299,0-35,15.701-35,35s15.701,35 35,35 35-15.701 35-35-15.701-35-35-35zm0,55c-11.028,0-20-8.972-20-20s8.972-20 20-20 20,8.972 20,20-8.971,20-20,20z"/>
        <path d="m137.5,116.049h23.779c4.143,0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-23.779c-10.423,0-27.031,7.176-34.177,14.767l-60.088,63.845c-2.051,2.179-2.609,5.368-1.423,8.115 1.187,2.747 3.893,4.525 6.885,4.525h290.271c2.562,0 4.945-1.307 6.323-3.467 1.377-2.159 1.558-4.873 0.478-7.195l-30.854-66.365c-3.315-7.046-14.628-14.225-22.415-14.225h-101.221c-4.143,0-7.5,3.358-7.5,7.5l-.001,68.752h-117.722l48.19-51.204c4.243-4.508 17.066-10.048 23.254-10.048zm61.279,0h93.7c2.203,0.103 7.842,3.681 8.849,5.581l25.883,55.671h-128.433l.001-61.252z"/>
        <path d="m470,257.692c0-26.631-20.555-55.149-45.819-63.57-0.017-0.006-35.078-11.693-35.078-11.693-5.854-1.951-13.576-8.812-16.203-14.394l-30.84-65.535c-8.299-17.636-30.068-31.451-49.56-31.451h-155c-18.639,0-43.247,10.632-56.022,24.206l-69.158,73.482c-6.909,7.34-12.32,20.984-12.32,31.064v94.15c0,20.678 16.822,37.5 37.5,37.5h14.06c3.775,37.846 35.8,67.5 74.624,67.5s70.849-29.654 74.624-67.5h45.509c4.143,0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-45.509c-3.775-37.846-35.8-67.5-74.624-67.5s-70.849,29.654-74.624,67.5h-14.06c-12.406,0-22.5-10.093-22.5-22.5v-94.15c0-6.294 3.929-16.2 8.242-20.783l69.159-73.483c9.941-10.563 30.594-19.486 45.099-19.486h155c13.682,0 30.162,10.458 35.987,22.838l30.84,65.535c4.421,9.395 15.182,18.955 25.031,22.238l28.498,9.499c-0.492,2.841-0.748,5.729-0.748,8.642 0,25.238 18.65,46.198 42.892,49.831v29.32c0,12.407-8.357,22.5-18.631,22.5h-17.929c-3.775-37.846-35.8-67.5-74.624-67.5-41.355,0-75,33.645-75,75s33.645,75 75,75c38.824,0 70.849-29.654 74.624-67.5h17.929c18.544,0 33.631-16.822 33.631-37.5v-36.26zm-343.816,6.259c33.084,0 60,26.916 60,60s-26.916,60-60,60-60-26.916-60-60 26.916-60 60-60zm217.632,120c-33.084,0-60-26.916-60-60s26.916-60 60-60 60,26.916 60,60-26.916,60-60,60zm83.292-169.15c0-0.969 0.04-1.934 0.117-2.893 13.16,7.627 23.787,22.37 26.864,37.266-15.466-3.785-26.981-17.756-26.981-34.373z"/>
      </g>
    </svg>
    

    Here’s a minified version:

    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 470 470" enable-background="new 0 0 470 470"><path d="m126.18 358.95c19.299 0 35-15.701 35-35s-15.701-35-35-35-35 15.701-35 35 15.701 35 35 35m0-55c11.03 0 20 8.972 20 20s-8.972 20-20 20-20-8.972-20-20 8.971-20 20-20"/><path d="m343.82 288.95c-19.299 0-35 15.701-35 35s15.701 35 35 35 35-15.701 35-35-15.701-35-35-35m0 55c-11.03 0-20-8.972-20-20s8.972-20 20-20 20 8.972 20 20-8.971 20-20 20"/><path d="m137.5 116.05h23.779c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-23.779c-10.423 0-27.03 7.176-34.18 14.767l-60.09 63.845c-2.051 2.179-2.609 5.368-1.423 8.115 1.187 2.747 3.893 4.525 6.885 4.525h290.27c2.562 0 4.945-1.307 6.323-3.467 1.377-2.159 1.558-4.873.478-7.195l-30.854-66.36c-3.315-7.05-14.628-14.225-22.415-14.225h-101.22c-4.143 0-7.5 3.358-7.5 7.5l-.001 68.752h-117.72l48.19-51.2c4.243-4.508 17.07-10.05 23.254-10.05m61.28 0h93.7c2.203.103 7.842 3.681 8.849 5.581l25.883 55.671h-128.43l.001-61.25"/><path d="m470 257.69c0-26.631-20.555-55.15-45.819-63.57-.017-.006-35.08-11.693-35.08-11.693-5.854-1.951-13.576-8.812-16.203-14.394l-30.84-65.53c-8.299-17.636-30.07-31.451-49.56-31.451h-155c-18.639 0-43.25 10.632-56.02 24.21l-69.16 73.48c-6.909 7.34-12.32 20.984-12.32 31.06v94.15c0 20.678 16.822 37.5 37.5 37.5h14.06c3.775 37.846 35.8 67.5 74.62 67.5s70.849-29.654 74.62-67.5h45.509c4.143 0 7.5-3.358 7.5-7.5s-3.357-7.5-7.5-7.5h-45.509c-3.775-37.846-35.8-67.5-74.62-67.5s-70.849 29.654-74.62 67.5h-14.06c-12.406 0-22.5-10.09-22.5-22.5v-94.15c0-6.294 3.929-16.2 8.242-20.783l69.16-73.48c9.941-10.563 30.594-19.486 45.1-19.486h155c13.682 0 30.16 10.458 35.987 22.838l30.84 65.53c4.421 9.395 15.182 18.955 25.03 22.24l28.498 9.499c-.492 2.841-.748 5.729-.748 8.642 0 25.24 18.65 46.2 42.892 49.831v29.32c0 12.407-8.357 22.5-18.631 22.5h-17.929c-3.775-37.846-35.8-67.5-74.62-67.5-41.36 0-75 33.645-75 75s33.645 75 75 75c38.824 0 70.849-29.654 74.62-67.5h17.929c18.544 0 33.631-16.822 33.631-37.5v-36.26m-343.82 6.259c33.08 0 60 26.916 60 60s-26.916 60-60 60-60-26.916-60-60 26.916-60 60-60m217.63 120c-33.08 0-60-26.916-60-60s26.916-60 60-60 60 26.916 60 60-26.916 60-60 60m83.29-169.15c0-.969.04-1.934.117-2.893 13.16 7.627 23.787 22.37 26.864 37.27-15.466-3.785-26.981-17.756-26.981-34.37"/></svg>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Some files not allowed to upload?’ is closed to new replies.