fixed upload file feature errors