# File Upload

## Uploading data

1. To upload, add a new device, select *Upload a file* and a new popup will appear
2. Here, you must upload the original zip file used for the recording. You may also make small changes and compress the files into a new zip, but the web app may fail to reproduce those files.

The object that is being played back should behave similarly to a connected device. You need to click on the **play button** to start streaming the data. Once the file ends, playback will stop, but you have the option to start again, rewind, or loop.

## Recording data

1. To record a file, simply start streaming using your device and press the **record button,** accessible at any time from the "devices" window.&#x20;
2. It will save the streamed data to your computer as a .zip with multiple .csv files that contain data points, timestamps, and some metadata.

{% hint style="danger" %}
Avoid **deletion** of the .zip file if you ever want to play back the pre-recorded data.
{% endhint %}

## Information about pre-recorded data

The files recorded for this application will typically follow the convention `deviceName_datetime`. They will be downloaded as a zip file with the following minimum contents:

* README.txt with basic information about the folder and its contents.
* metadata.csv where the devices and files are described and correlated

The other files will be .csv recordings of the datastreams. If you ever want to unzip a folder, modify a file, compress it, and re-upload it, it is important to avoid modifying the files above, otherwise it might not work.


---

# 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.youquantified.com/devices/file-upload.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.
