You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do?
I want to upload svg file to aws s3. I use http.DetectContentType(buffer) to get the content type.
I really want the http.DetectContentType(buffer); back image/svg+xml replace text/xml; charset=utf-8. Because the browser don't show the svg images when <img src="s3/a-svg-file.svg"> if you give browser ContentType: text/xml; charset=utf-8.
I think it's more suit for web develop.
What did you expect to see? image/svg+xml
If the function out of http.DetectContentType(buffer) scope or you have suggestions for me. Welcome to reply.
Thank you very much and sorry for my bad English.