Fix add type of uploaded file