Added a simple mime type setter based on a couple of different filetypes (jpg and pdf) and have a catch-all for octet-stream if the file type is something unrecognized