Skip to content

Upload fails for SVGs that contain xlink to a url

0

Hi,
I'm unable to upload any SVGs into a bucket where the SVGs contains an xlink to a url. All other SVGs upload no issue. Has anyone experienced this? Any ways to resolve this?
Thanks
Mario

Copy of an SVG in question

<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24" id="instagramIcon"> <style type="text/css"> .background { fill: #ff0000; fill-opacity: 0; stroke: none; }
	.socialMediaIcon {  
		fill: #233d4d;  
	}  

	.socialMediaIconGroup:hover .socialMediaIcon {  
		fill: #ffffff;  
	}  
</style>  
<g class="socialMediaIconGroup">  
	<title id="titleInstagram">Instagram Icon</title>  
	<a xlink:href="https://www.instagram.com/thetrailnet/" target="new">  
		<path class="socialMediaIcon" d="M 12,0 C 8.74,0 8.333,0.015 7.053,0.072 5.775,0.132 4.905,0.333 4.14,0.63 3.351,0.936 2.681,1.347 2.014,2.014 1.347,2.681 0.935,3.35 0.63,4.14 0.333,4.905 0.131,5.775 0.072,7.053 0.012,8.333 0,8.74 0,12 c 0,3.26 0.015,3.667 0.072,4.947 0.06,1.277 0.261,2.148 0.558,2.913 0.306,0.788 0.717,1.459 1.384,2.126 0.667,0.666 1.336,1.079 2.126,1.384 0.766,0.296 1.636,0.499 2.913,0.558 C 8.333,23.988 8.74,24 12,24 c 3.26,0 3.667,-0.015 4.947,-0.072 1.277,-0.06 2.148,-0.262 2.913,-0.558 0.788,-0.306 1.459,-0.718 2.126,-1.384 0.666,-0.667 1.079,-1.335 1.384,-2.126 0.296,-0.765 0.499,-1.636 0.558,-2.913 C 23.988,15.667 24,15.26 24,12 24,8.74 23.985,8.333 23.928,7.053 23.868,5.776 23.666,4.904 23.37,4.14 23.064,3.351 22.652,2.681 21.986,2.014 21.319,1.347 20.651,0.935 19.86,0.63 19.095,0.333 18.224,0.131 16.947,0.072 15.667,0.012 15.26,0 12,0 z m 0,2.16 c 3.203,0 3.585,0.016 4.85,0.071 1.17,0.055 1.805,0.249 2.227,0.415 0.562,0.217 0.96,0.477 1.382,0.896 0.419,0.42 0.679,0.819 0.896,1.381 0.164,0.422 0.36,1.057 0.413,2.227 0.057,1.266 0.07,1.646 0.07,4.85 0,3.204 -0.015,3.585 -0.074,4.85 -0.061,1.17 -0.256,1.805 -0.421,2.227 -0.224,0.562 -0.479,0.96 -0.899,1.382 -0.419,0.419 -0.824,0.679 -1.38,0.896 -0.42,0.164 -1.065,0.36 -2.235,0.413 -1.274,0.057 -1.649,0.07 -4.859,0.07 -3.211,0 -3.586,-0.015 -4.859,-0.074 C 5.94,21.703 5.295,21.508 4.875,21.343 4.306,21.119 3.915,20.864 3.496,20.444 3.075,20.025 2.806,19.62 2.596,19.064 2.431,18.644 2.237,17.999 2.176,16.829 2.131,15.569 2.115,15.18 2.115,11.985 2.115,8.789 2.131,8.399 2.176,7.124 2.237,5.954 2.431,5.31 2.596,4.89 2.806,4.32 3.075,3.93 3.496,3.509 3.915,3.09 4.306,2.82 4.875,2.611 5.295,2.445 5.926,2.25 7.096,2.19 8.371,2.145 8.746,2.13 11.955,2.13 L 12,2.16 z m 0,3.678 c -3.405,0 -6.162,2.76 -6.162,6.162 0,3.405 2.76,6.162 6.162,6.162 3.405,0 6.162,-2.76 6.162,-6.162 0,-3.405 -2.76,-6.162 -6.162,-6.162 z M 12,16 C 9.79,16 8,14.21 8,12 8,9.79 9.79,8 12,8 c 2.21,0 4,1.79 4,4 0,2.21 -1.79,4 -4,4 z M 19.846,5.595 c 0,0.795 -0.646,1.44 -1.44,1.44 -0.795,0 -1.44,-0.646 -1.44,-1.44 0,-0.794 0.646,-1.439 1.44,-1.439 0.793,-10e-4 1.44,0.645 1.44,1.439 z" />  
		<path class="background" d="M 6.8338983,21.685451 C 5.7552155,21.588362 5.2142087,21.442424 4.4692785,21.047585 3.4432561,20.503758 2.7377647,19.533256 2.3994552,18.200254 2.187294,17.364298 2.0742655,9.3361818 2.2451545,7.240678 2.4092175,5.2288761 2.7808182,4.2475581 3.6779286,3.4570276 5.0479895,2.2497351 6.4647413,2.0770224 13.647458,2.2416671 c 3.507116,0.080391 4.314862,0.1262032 4.779661,0.2710813 1.752292,0.5461908 2.634565,1.4679628 3.113947,3.2533533 0.176,0.6554864 0.191023,1.1467809 0.189699,6.2033903 -0.0013,4.858633 -0.02161,5.570636 -0.176503,6.177968 -0.47642,1.868078 -1.516156,2.920464 -3.354008,3.394812 -0.536203,0.138393 -1.421534,0.169034 -5.569746,0.192766 -2.7127114,0.01552 -5.321186,-0.0068 -5.7966097,-0.04959 l 0,0 z m 7.0169487,-3.756897 c 3.978975,-1.25154 5.601451,-5.989617 3.245417,-9.4775102 C 15.758973,6.4713055 13.095846,5.4250024 10.677887,5.9293575 8.9249695,6.2949935 7.2325182,7.6343238 6.4506853,9.2745763 5.9646332,10.294293 5.8169492,10.931533 5.8169492,12.009077 c 0,2.956863 1.9792663,5.397693 4.9225178,6.070444 0.820185,0.187474 2.257039,0.117756 3.11138,-0.150967 l 0,0 z M 19.210317,6.8380153 C 19.688129,6.5466763 19.88276,6.1014584 19.826881,5.4276277 19.786827,4.9446402 19.730824,4.8226718 19.417088,4.5351542 18.944846,4.1023769 18.456947,4.0102745 17.8548,4.2402361 c -1.031494,0.3939313 -1.2562,1.6026316 -0.448159,2.4106715 0.35156,0.351561 0.435571,0.3863463 0.932242,0.3860004 0.361858,-2.542e-4 0.65561,-0.067297 0.871434,-0.1988927 l 0,0 z"/>  
		<path class="background" d="M 11.427894,15.875582 C 10.239332,15.717156 9.0380393,14.837629 8.48084,13.717893 7.7473086,12.243804 8.05511,10.416635 9.2358724,9.2358724 c 2.0717596,-2.07176 5.4949836,-1.2461808 6.4993956,1.5674596 0.210574,0.589875 0.210826,1.842015 4.92e-4,2.437346 -0.634178,1.794977 -2.419016,2.886672 -4.307866,2.634904 z" />  
	</a>  
</g>  
</svg>
asked 7 years ago365 views
3 Answers
0

"Unable to upload" ... meaning, what, exactly?

Do you get an error when you try to upload the file? An error when you try to use the file? S3 does not do any content analysis or processing when you store an object -- it just stores the bytes you send, so there is no obviois reason why this file would specifically be a problem.

answered 7 years ago
0

SQLBOT,

Funny thing the < a href / > in the sample I provided in my original post was removed by the forum. Sorry just noticed that.

Yes I do get an error message but no description. Might need to track down the actual error logs instead of clicking on the error message after the upload fail.

The bucket is being used for a static website, could this be an issue?

Edited by: MarioMadunic on Jan 18, 2019 6:26 PM

Edited by: MarioMadunic on Jan 19, 2019 8:45 AM

answered 7 years ago
0

Found other objects that were not uploaded. I'm using Light Gallery and the share javascript modules were not uploaded also.

Decided not to use the interactive SVGs I created. They were just social media icons and the linking was done within the SVG. So am now using Font Awesome and so far no issues.

If I still had my dev support I'd post it there and hope it is investigated by them.

Marking as answered hoping others might find it of interest.

Mario

answered 7 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.