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 anyone and 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: upload "Web editing guide.pdf" to your media library. If you find a typo in it and want to update it, 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: naming the file "Web editing guide final draft 2018.pdf" and then finding a typo, saving it as "Web editing guide final draft 2018 v2.pdf" and re-uploading it. 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 2 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 info 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.