# Upload new File version

**URL:** <https://help.nextcloud.com/t/upload-new-file-version/23265>\
**Category:** ℹ️ Support\
**Created:** [November 7, 2017, 3:19pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265 "2017-11-07T15:19:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![joesch2](https://help.nextcloud.com/letter_avatar/joesch2/32/5_5575768a8748004e209b776fc1b2916d.png) [@joesch2](https://help.nextcloud.com/u/joesch2)\
**Post date:** [November 7, 2017, 3:19pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/1 "2017-11-07T15:19:19Z")

</div>

I have uploaded a pdf file to a folder.  
How can I upload and save a new version of this pdf file as a new version to this file?  
At the moment I can only upload and safe the file with a new file name, but not as a new version.

Many thanks,  
joesch2

---

<div class="post-metadata">

**Author:** ![16RUS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/16rus/32/16797_2.png) [@16RUS](https://help.nextcloud.com/u/16RUS)\
**Post date:** [July 29, 2019, 11:23am UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/2 "2019-07-29T11:23:20Z")

</div>

I’d like to enter the discussion with the same question.  
In general - is here any mechanism to upload file with the existing name which ends with creation of new version but not duplicate of the existing file.

---

<div class="post-metadata">

**Author:** ![gas85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gas85/32/7772_2.png) [@gas85](https://help.nextcloud.com/u/gas85)\
**Post date:** [July 29, 2019, 12:07pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/3 "2019-07-29T12:07:44Z")

</div>

As was mentioned in other topic:

> [@File versioning in NextCloud](https://help.nextcloud.com/t/file-versioning-in-nextcloud/57387/2):
>
> Have you tried to activate the **Versions** app?

After you enable it, you will see Versions in “More” menu. Also please read more about settings of this App: [Configuration Parameters — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/16/admin_manual/configuration_server/config_sample_php_parameters.html#file-versions)

---

<div class="post-metadata">

**Author:** ![16RUS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/16rus/32/16797_2.png) [@16RUS](https://help.nextcloud.com/u/16RUS)\
**Post date:** [July 29, 2019, 12:27pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/4 "2019-07-29T12:27:21Z")

</div>

# gas85 - thx, but I’ve already red this several times.

If files stored on external storage for example and among them “1.txt” has already persisted. Someone decided to upload new file with the same file name - “1.txt” Will it cause the new file version creation?

---

<div class="post-metadata">

**Author:** ![budy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/budy/32/697_2.png) [@budy](https://help.nextcloud.com/u/budy)\
**Post date:** [July 29, 2019, 1:40pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/5 "2019-07-29T13:40:21Z")

</div>

If the existing file is known to NC already yes, the uplaod of a new fiel with the same name will trigger a new version to be created with the new file. However, if someone should overwrite the file on the external storage though other means, this may fail to create a new version, since NC didn’t have the chance to save the old file, before writing the new one.

---

<div class="post-metadata">

**Author:** ![16RUS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/16rus/32/16797_2.png) [@16RUS](https://help.nextcloud.com/u/16RUS)\
**Post date:** [July 29, 2019, 2:29pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/6 "2019-07-29T14:29:24Z")

</div>

## Stephan Budach, couldn’t you recheck your statement plz?

Cause, in my case, window appears on the screen which offers only two options - save new one or preserve the old copy of file. If both option are checked - then name of uploaded file concatenates with suffix number.  
Does it say what something going wrong with file versioning on our NC??

---

<div class="post-metadata">

**Author:** ![budy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/budy/32/697_2.png) [@budy](https://help.nextcloud.com/u/budy)\
**Post date:** [July 29, 2019, 4:45pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/7 "2019-07-29T16:45:08Z")

</div>

If you only check the save the new one, you will upload the new file and the old one becomes the latest previous version. I just did that to check…

---

<div class="post-metadata">

**Author:** ![16RUS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/16rus/32/16797_2.png) [@16RUS](https://help.nextcloud.com/u/16RUS)\
**Post date:** [July 30, 2019, 5:28am UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/8 "2019-07-30T05:28:05Z")

</div>

## Stephan Budach, wow man many thanks!

I’ve just tested it and it works) Hope this topic will be crawled by searching engine and information became available on the Internet.

Stephan, please help me understand something else. If I edited some known by NC file on the storage by text editor (let it be MS Excel) - will NC create new version in that case?

---

<div class="post-metadata">

**Author:** ![budy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/budy/32/697_2.png) [@budy](https://help.nextcloud.com/u/budy)\
**Post date:** [July 30, 2019, 5:46am UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/9 "2019-07-30T05:46:35Z")

</div>

No, it can’t. In order to be able to create a new version, the file has to be uploaded through NC’s APIs. If you operate on an external storage, or even on NC’s local data folder, bypassing NC’s APIs, then NC simply doesn’t have the chance to copy off the old file to a new version, before the new file gets placed onto the storage.

To make it simple: if you want to rely on NC’s version control app, you will have to only use NC’s tools for uploading or changeing files on the storage.

---

<div class="post-metadata">

**Author:** ![16RUS](https://help.nextcloud.com/user_avatar/help.nextcloud.com/16rus/32/16797_2.png) [@16RUS](https://help.nextcloud.com/u/16RUS)\
**Post date:** [July 30, 2019, 6:25am UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/10 "2019-07-30T06:25:58Z")

</div>

That seems quite reasonable) Thank you for attention to our little matter, there is no more questions!  
That a pity, but I am unable to mark your answer as a solution…

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 2:54pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/11 "2024-12-02T14:54:25Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 1:38pm UTC](https://help.nextcloud.com/t/upload-new-file-version/23265/12 "2024-12-09T13:38:43Z")

</div>


