Fix resolve files that are not in uploadPath.