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
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
I was testing the app in Internet Explorer 9 for my next production app and I found that profile pic doesn't load. I did some searches and found that image is not having any extension and node js is not setting the headers properly for IE to know whether that url is an image or not.
Thanks.
The text was updated successfully, but these errors were encountered:
@lirantal I didn't really fix it. Instead I kinda put a hack by setting content-type to image/jpeg without knowing actual content type as I was only uploading jpeg. Later I got to know about magic numbers but reading the file every time would be resource expensive in my case.
Are you saying that the server doesn't respond with the correct headers for the image?
Yes. The headers are application/octet which IE doesn't understand.
That's right.
The missing feature would be that after the upload is successful we don't only record the filepath for the picture but also metadata, such as the file mimetype and others. This way, you can use it to send it back to the client.
Hi team,
I was testing the app in Internet Explorer 9 for my next production app and I found that profile pic doesn't load. I did some searches and found that image is not having any extension and node js is not setting the headers properly for IE to know whether that url is an image or not.
Thanks.
The text was updated successfully, but these errors were encountered: