Adjusting to handle duplication of files in upload