# Sharing files across projects

You may share files across projects using the **From Another Project** option located within the **Add Files** pop-up window:

<figure><img src="/files/xJLpCtTYlS5vqU4fcP1K" alt="Adding a file from another project" width="563"><figcaption></figcaption></figure>

If you'd like to (regularly) use the same files across multiple projects then it may be convenient to use the following arrangement:

1. Create a “parent” project containing your reusable files, e.g., `.bib`, `.cls`, `.sty`, graphics, etc.
2. Within a “child” project, in which you want to reuse a file, follow this procedure:

* Click the **Upload files** button at the top of the file list panel, or go to the **File menu** and select **Upload file**. Overleaf displays the **Add Files** pop-up window. Here, you need to do the following:
  * Select **From Another Project.**
  * Under **Select a Project**, choose the “parent” project containing the reusable files.
  * Under **Select a File**, choose the file that you need.

<figure><img src="/files/YBiQKiuiChT3Uq4JgA6M" alt=""><figcaption></figcaption></figure>

You will now be able to *use* the linked file within your “child” project, but you will *not be able to edit it*. Although linked files in “child” projects cannot be edited, they can be updated (refreshed) if you’ve modified the original copy of the file(s) in the parent project:

* Click on the linked file in the “child” project.
* Select **Refresh** to pull in the changes.

{% hint style="info" %}
Any `.tex` files imported using **From Another Project** cannot be set as the main file for compiling the “child” project.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.overleaf.com/managing-projects-and-files/adding-files-to-a-project/sharing-files-across-projects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
