Upload File on Confluence
Asked by Vipin Gupta:

Dear Technical Support,

I am trying to upload the file into my directory and it is uploaded successfully.

But the issue is that while re-upload the same file it didn't create the version of the file nor rename the file which results in it replaces the old file without prompting to overwrite it.

Advise that it can create the version of the same file that might be last up to 10 versions and then archive them with the specific period of expiry of archive files.

Thanks


Answers:
author: Diego
body: Hello [@Vipin Gupta](/t5/user/viewprofilepage/user-id/3991793)

As I understand, you need Confluence to create new attachment version and also be possible to archive older versions based on uploaded date.

I tried to replicate this behavior but was unable to. I uploaded a file and then, on the same page, uploaded a new attachment that has the same name.

Once the new attachment was uploaded, a new version for the attachment was created. Here is what it looked like:
>
> **Original File**
>
> ![Screen Shot 2020-08-26 at 15.10.53.png](https://community.atlassian.com/t5/image/serverpage/image-id/108136iC3FD3BF83156AC28/image-dimensions/425x180?v=v2 "Screen Shot 2020-08-26 at 15.10.53.png")
>
> **Original file in attachment list** ![Screen Shot 2020-08-26 at 15.11.06.png](https://community.atlassian.com/t5/image/serverpage/image-id/108134i7D10A3FEB056113B/image-dimensions/421x108?v=v2 "Screen Shot 2020-08-26 at 15.11.06.png")
>
> **New file version**
>
> ![Screen Shot 2020-08-26 at 15.13.38.png](https://community.atlassian.com/t5/image/serverpage/image-id/108137i445C5C0F005CB292/image-dimensions/410x219?v=v2 "Screen Shot 2020-08-26 at 15.13.38.png")
>
> **New file version in attachment list**
>
> ![Screen Shot 2020-08-26 at 15.13.53.png](https://community.atlassian.com/t5/image/serverpage/image-id/108135i63582C332E0EFB9A/image-dimensions/444x116?v=v2 "Screen Shot 2020-08-26 at 15.13.53.png")

With this in mind, I would like to ask you a few questions:
> 1. *Are you unable to create attachment versions with all types of files?*
> 2. *Is this happening in all pages where attachments are present?*
> 3. *Is there any error when you try to upload new attachments?*

Currently, archiving attachments is not possible in Confluence. What you can archive in Confluence are Spaces and Pages:
> * [++***\[Confluence Cloud\] Confluence: Archiving Content***++](https://confluence.atlassian.com/confeval/confluence-evaluator-resources/confluence-archiving-content)

The ability to archive and create an expiration date for attachments has been suggested some time ago:
> * [++***\[Confluence Cloud\] Ability to specify maximum number of attachment versions and expiry date (Attachment Archive Control)***++](https://jira.atlassian.com/browse/CONFCLOUD-7260)

Let us hear from you!

comments: author: Vipin Gupta
body: Hello [@Diego](/t5/user/viewprofilepage/user-id/1188952)

* *Are you unable to create attachment versions with all types of files?*
* If I go to see the attachment details then only it shows the versions of files, but If I created the page-table and then trying to add an attachment within the specific column and then trying to re-upload the file it replaces all files available with the same name within that page-table.
* *Is this happening in all pages where attachments are present?*
* Yes
* *Is there any error when you try to upload new attachments?*
* No


Tags: cloud

confluence-cloud