#Svg file from storage .

1 messages · Page 1 of 1 (latest)

sand pike
#

How do I get and display my svg image from appwrite's storage in my react app. Currently I am unable to do so . I have tried appwrite's get file for view and other methods .

Please help 🙏🏼

stone gulch
sand pike
#

There are no errors...it's just that the image is not getting displayed

stone gulch
sand pike
daring raft
# sand pike

And what’s your getMagazineCover() function?

sand pike
daring raft
sand pike
daring raft
sand pike
#

Url

daring raft
# sand pike Url

So it is the correct URL? What do you see in your browser console?

sand pike
stone gulch
sand pike
#

but it's not getting displayed

#

this is only happening with svg files

#

for other images like png , jpeg i could use file for preview method

#

and if i try to display a random svg file it is getting displayed but after getting it from appwrite's bucket it is not getting displayed

daring raft
#

I wonder if Appwrite is sending the wrong headers…

daring raft
# sand pike

If you look in the Network tab when you attempt to load the image, do you see a request for the image there? What does that request look like? What’s the response?

sand pike
clever garden
#

I face the same issue, the Content-Type is text/html

daring raft
sand pike
#

so is there a solution?

clever garden
haughty summit
#

@sand pike hi, I have the same issue. Did you find any solution?