infinite-industries / infinite

MIT License
5 stars 3 forks source link

All the images are uploaded as a JPEG regardless of the actual file type #436

Closed Digi-D closed 12 months ago

Digi-D commented 1 year ago

Currently, all of the images are uploaded with .jpg suffix regardless of their actual file type.

Doesn't break since the S3 bucket returns it as "application/octet-stream" MIME type but needs to be changed to the appropriate suffix or avoid suffixes all together.

MatthewGidcomb commented 1 year ago

Cause of hard-coded .jpg suffix:

https://github.com/infinite-industries/infinite/blob/5f3033c1292ff6483d432796a074610c0c7a2287/web-portal/internal-api/upload-images.js#L13-L18

MatthewGidcomb commented 12 months ago

Fixed by #454