Like page content, attachments are versioned every time they change. There are two ways an attachment can change. First, a new image can be uploaded with the same name of an existing attachment on the same page. When this happens, the file is stored as a new version of the attachment. The second way an attachment can change is when it's Deleted or Hide attributes are changed.
When a file with the same name of an existing attachment on the same page is uploaded, the file name is stored with an incrementing version counter. For example, A new attachment named pic.jpg attached to the Home page will be stored as:
If you attach pic.jpg to the Home page a second time, it will be stored as:
This is important to note, as links and inserted images of attachments are specific to the version that was current when the link or image was inserted. If you attach a new version of a file that is displayed or linked to in your page, make sure you update the link or image to reflect the new version.
When an attachment's Hide and Delete attributes are changed, a new version of the attachment is created for historical record, but a new copy of the file is not created, so the stored file name does not change.
Back to Attachments