We have a customer who are planning on putting a lot of documents into a Library in SharePoint. These documents will be uploaded, by hand, and are nearly always the ‘final’ version of the document. Given the number of documents in the library, the plan is to find them again using their metadata, which seems like a good idea.
However, there’s a catch – what if someone has uploaded a document with that filename already?
It’s possible. Unfortunately, unlike when you save something from Office, by default during upload there is no warning that the file already exists. There is a checkbox to allow files to be overwritten as a new version, but this is checked by default:
This is unfortunate. By default, our users could accidentally overwrite a file that had been uploaded with that filename already. This is less than ideal.
What would be good is if the checkbox were unchecked by default. Unfortunately, there is no setting for this. So I started considering options.
Well, the upload form does use a master page, so I decided to try that – I added the following code into the master page:
It’s just a shame that I have to do this; SharePoint really ought to have a setting to leave it unchecked by default, or at least warn the user that a file of that name already exists in a given location.