# Files

A files data source allows you to share files in a read-only way between multiple workbooks within a single account context.

## Set up a file data source

Select **Data Sources** in the sidebar and click on **New Data Source** in the screen that follows. You'll be prompted to select the type of the data source. Either drag in files you want to use to create a data source or press **browse files** to select the files you want to upload.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FJQR2TTGVerITDInx7Xfw%2FScreenshot%202024-08-19%20at%2013.46.36.png?alt=media&#x26;token=4fcffd05-9d7b-43d1-bd86-6ae636d8649b" alt=""><figcaption></figcaption></figure>

A *files* data source will be created and you'll see an overview on the following screen. Here you can update the name, change the description, upload more files or just browse a preview of the data.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2F7Ebuh8CDVhxq4mPU73rj%2FScreenshot%202024-08-19%20at%2013.49.19.png?alt=media&#x26;token=00e03cfb-d9a2-46ed-860f-af9ead99b4b8" alt=""><figcaption></figcaption></figure>

## Query a files data source

You can now query your files data source with a [sql-cell](https://datalab-docs.datacamp.com/work/sql-cell "mention"). Select it in the **Select source** dropdown in the top left corner of a SQL cell. You can query the individual files by specifying their name in the `FROM` clause. The schema of the data source is also available by clicking on **Browse Files**, from here it's also easy to start querying individual files.

<figure><img src="https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2Fg6lTAAHRwWmW2BeFghc5%2FScreenshot%202024-08-19%20at%2013.52.19.png?alt=media&#x26;token=24b54228-25bf-427e-b35d-1fd016e5998b" alt=""><figcaption></figcaption></figure>
