Uploader: added mimetype detection.