# Upload or Open Directories

## Uploading Files

The best way to upload files is via the "Upload to S3" dialog, which requires that you connect your S3 bucket to the Universal Data Tool. You can find details on how to do that in the [Import from S3 guide](/importing-data/import-from-aws-s3-bucket.md).

![Import files Dialog](/files/-MIB5bHOxfvw9iTffM8Q)

## Opening Files

You can only open files in the desktop application, because web apps aren't allowed to access filesystem directories. To select a directory full of files, use the `Samples > Import from Directory` button.

{% hint style="warning" %}
If you Import files from Directory your UDT dataset will use "links" to files on your system, this means they won't be very accessible if you're sharing your dataset or using it on multiple computers.
{% 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.universaldatatool.com/importing-data/upload-or-open-directories.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.
