> 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="/files/AiIUYaeqnEXUh8MseAJ5" 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="/files/m784vepe4ftXx6voqDOo" 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="/files/guvzujVdHEL5xT4kBBEm" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
