I am uploading an image on my server side in node js using firebase-admin package:
const upload = await bucket.upload('myimage.png', {
destination: "myimage.png",
metadata: {
contentType: 'image/png'
}
});
and it does not work, the file uploaded successfully but the firebase storage cannot read it as an image even though the content type is as I set in the matadata.
When I upload the same image manually it does read it as a png image.
Please help :) thanks