add mimetype to uploaded files

base upon the filename, fallback for provided title