# Uploading or Downloading Files in a Script

You can test a web application’s ability to upload or download a file as part of a transaction test, by adding it into your script. Although you can test file uploads and downloads using the FTP server test, you can also use a transaction test to assess a website’s support for file uploads or downloads through a browser interface.

Note the following:

* ThousandEyes does not allow you to upload ordinary files as part of a transaction test. You must generate a file with custom content as part of the script, or generate a file with random content.
* For file downloads, you can write a script to wait for the download to finish, examine the contents of that file, and use those contents elsewhere in the script. One common use case involves timing the performance of uploading or downloading a file.


---

# 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.thousandeyes.com/product-documentation/browser-synthetics/transaction-tests/use-cases/uploading-downloading.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.
