> For the complete documentation index, see [llms.txt](https://help.hippoly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.hippoly.com/using-hippoly/files-and-folders/update-file.md).

# Update file

You can update a file by either **dragging and dropping** a new version onto the folder where the file is located, or by using the **Update file** dialog.

{% hint style="info" %}
**Note:** When using drag and drop to update a file, the new version must have the **exact same filename** and be of the **same file type** as the existing one.  Otherwise, it will be uploaded as a **new file** instead of updating the current version.
{% endhint %}

If you want to update a file using the **Update file dialog**, follow these steps

{% stepper %}
{% step %}
Navigate to `Files` in the main menu.&#x20;
{% endstep %}

{% step %}
Go to your file and click the `Menu-icon`  to the right of the file name.
{% endstep %}

{% step %}
Select the `Update file` menu option.

<figure><img src="https://2368761383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5A8sAk8EwFvZz8ID3yYR%2Fuploads%2FPSmKWpdHxTPQBGnH7347%2Ffiles-update-file-menu-option.png?alt=media&amp;token=e64e7d2a-8998-42e9-89e6-41ae86f7151a" alt="" width="563"><figcaption></figcaption></figure>

The **file previewer** will open with the **details panel** visible showing the **versions tab.**
{% endstep %}

{% step %}
&#x20;Click the `Upload new file version` button.

<figure><img src="https://2368761383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5A8sAk8EwFvZz8ID3yYR%2Fuploads%2Fcq1tj4SeJZeQo6wzfIlT%2Ffiles-details-versions-update-action.png?alt=media&amp;token=d281b090-5622-4055-835b-70d41074b9d2" alt="" width="563"><figcaption></figcaption></figure>

{% endstep %}

{% step %}
In the dialog that appears, either drag and drop the new version of the file, or click to browse and select it manually.

<figure><img src="https://2368761383-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5A8sAk8EwFvZz8ID3yYR%2Fuploads%2FUH4ziy0ApEAsbCub5vnR%2Ffiles-update-file-dialog.png?alt=media&amp;token=44f8c019-b05d-4f23-8f47-6d826442b289" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Finally, click the `Upload` button.
{% endstep %}
{% endstepper %}

Learn more about [file versioning](/using-hippoly/files-and-folders/file-versioning.md) or how to [restore a previous file version](/using-hippoly/files-and-folders/file-versioning.md#restore-a-previous-file-version).&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.hippoly.com/using-hippoly/files-and-folders/update-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
