fixed error in upload view