upload with correct mime_type