I'm using a list which allows users to attach files to an item but removes the delete option using javascript. I need to find out if theres a way I can allow users to continue uploading documents to the list but if the name is the same to add a prefix or suffix. Right now I get an error if I try to upload the same document to the item.
This is what I have. Basically users from one group can create a list item with attachment (work order). Users from a second group can only edit those items. The button at the top disappears based on the users email domain. I still need to figure out how to grab a users group or permissions but that's be later. Anyways, the user with edit permissions basically takes the other from new to inProgress to Pending to Completed. Through those stages, the document changes and the client wants to keep a history (I dont know why, it's actually really dumb but they're clients so not much I can do). So they don't want the editor to delete the initial document but they do want them to be able to download it, make changes to it, upload it back to the item. However, if the attachments have the same name, I get an error (not sure why), normally I assume it would just replace the document with the new version. So what I'm trying to figure out is if I can get any new uploads to be renamed, preventing the error I got or the overwrite of the initial attachment. Relying on the user to change the document file name, I foresee this resulting in many errors, so i'd rather find a way to automate that.