Web editing - How should I name my files and images?
Best practices for naming files used on your UWL pages
Media file management is an important part of web editing. Keeping your media organized and correctly named will ensure a good web experience for our site visitors.
The website is not meant to be a file storage for every working file and version of your documents, it's only meant to be stuff you want everyone to see, so it's important to utilize a storage system that your office/department already uses (OneDrive, Google Drive, N: drive, etc.)
When working with files, there are good ways and bad ways to name files:
- Good example: You upload "Web editing guide.pdf" to your media library. If you find a typo in it and want to update it, you save the updated version as "Web editing guide.pdf" (exactly the same) and re-upload it. The system will ask if you want to replace the file. Choose Replace. This will update your file and prevent you from having to update links to it on any pages that currently link to it.
- Bad example: You name the file "Web editing guide final draft 2018.pdf" and then, finding a typo, save it as "Web editing guide final draft 2018 v2.pdf" and re-upload. This creates unnecessary files in the web server that are all still public. If search engines ever picked up the first version, now there will be two versions shown in results, one of which has a typo in it. Oops!
Everyone uses our website differently. Sometimes people will view a PDF and bookmark it to reference in the future. Naming that file so that it can be updated easily and give people up-to-date information goes a long way. Also, search engines store references to our files so if something was uploaded and became out of date, but never deleted, the search engines will still display the file as a result.