# UPLOAD

#### Syntax <a href="#syntax.15" id="syntax.15"></a>

**UPLOAD**()

#### Remarks <a href="#examples.1" id="examples.1"></a>

* Calling this function uses the standard upload processing of the browser to store the file on the local computer.
* The function returns the content of the uploaded file as unformatted text.
* In case that any error occurs, !ERROR is returned.
* In the combination with CSVTORANGE, the UPLOAD function can be used to restore the content of any table widget from a file located on the client computer.

#### Examples <a href="#examples.1" id="examples.1"></a>

Clicking on the "Upload" button opens the "Open file" dialog in the browser. After the user has selected the file to upload, the text content is copied to cell1.

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-4b8082d78084c8c545a70d9ad81ef66be3efb5cd%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

In combination with CSVTORANGE, the UPLOAD function can be used to fill the content of a table widget with the content of a csv file on the client computer. The formula of the "Upload" button is here analogue to the previous example: #cell2 = UPLOAD()

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-5a8febcedaeb9ac6de4178536f6c6ced7f792c4f%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
