• Uploads don't appear to have corrent Mime types
    3 replies, posted
Had this issue myself when uploading shit to azure, since they don't actually have correct mime types, when opening an image in a new tab, it's displayed as a download, instead as displayable image. Which means you have to download it to at least a temp folder before you can view it You can trigger this manually right here by opening one of these images in a new tab
Bumping this because it's more informative than Can images please be not direct downloads
Can images please be not direct downloads
Yeah, it's just a classification system on how computers handle data. It's like a more accurate use of file extensions, but since you can really just edit extensions, or not need them entirely, they can be a bit tedious to work with. If your web server (or in this case, the blob storage for facepunch) doesn't have this configured, a web browser which has the MIME type prioritised would have a hard time working with the data being sent. Images work when being displayed on the web page because they are within Image tags, therefore are handled as images. But outside of that, it's just categorised as generic data. Your operating system can handle it because of a file extension, but the web browser trusts the incorrect headers. Other than that, we use them in simple programming for things like filetype whitelists [https://github.com/Nyubis/Pomfshare/blob/173df9df4339d95e5eb53c69a765060c01e1d6e5/app/src/main/AndroidManifest.xml#L24]
Sorry, you need to Log In to post a reply to this thread.