customize dropzone
whitespace fix
create mime handling class so that UploadController can use it too