bhanderson / pbnh

mix between pb and haste
MIT License
12 stars 8 forks source link

handle mimetypes #11

Closed jetpacktuxedo closed 8 years ago

jetpacktuxedo commented 8 years ago

if I upload an image, it should be detected as an image. If I upload a json file, it should know it is json.

It should pass the mimetype on to the browser in a request to help display it better, as well.

bhanderson commented 8 years ago

mimetypes are estimated with magic and you can specify the url with the extension with 8011d43 if it cant figure it out it reverts to the assumed mimetype