Upload files with correct content type

Fixes an issue where copy pasting a link into the browser forces a
download instead of showing the image in-browser