lacqueristas / universe

It started with a ❗
1 stars 1 forks source link

As a Consumer when I upload a file it eventually changes the Content-Type from application/octet-stream to the correct Content-Type. #19

Closed krainboltgreene closed 7 years ago

krainboltgreene commented 7 years ago

Due to the nature of edge network storage systems it's much easier to store everything as extension-less files with the "uniform" binary Content-Type: application/octet-stream. The problem is that browsers don't treat this as an image and instead just download the file (What if it's not an image? etc).

What we should do is have a Google Cloud Function that watches for new files and rewrites their Content-Type header to the correct mime-type.