# Uploading Files

You can upload files to **JMap Cloud** to use them later when creating data sources. The **Files** tab, located in the **Data Sources** section, provides tools to upload and manage your files.

The content of uploaded files is stored in JMap Cloud’s databases. However, files listed in the **Files** table are **automatically deleted after 10 days**.

## Files Tab

This tab displays a table of all the files you’ve uploaded. A button is available to let you upload new files.

The table includes the following information for each file:

* File name
* Data type (vector, raster, or tabular)
* Format
* Size
* Status
* Upload date

{% hint style="info" %}
Multiple files can share the same name.
{% endhint %}

**Supported file formats**:

* **Vector data** (compressed `.zip` file): GeoJSON, SHP, File GeoDatabase, GML, TAB, CSV, DWG, GeoPackage
* **Raster data** (uncompressed file): GeoTIFF
* **Tabular data** (compressed `.zip` file): CSV

You can select one or more files in the table using the checkboxes. When selected, the **Delete** option becomes available, allowing you to delete multiple files at once.

## Uploading a New File

Since spatial vector datasets typically consist of multiple files, you must compress them into a single `.zip` archive before uploading. **Non-spatial tabular data files** must also be uploaded as compressed `.zip` archives.

Compression is **not required** for raster files, unless you are uploading multiple files to be used as a mosaic—then, they must be grouped into a single `.zip` archive.

**Upload Methods:**

* **Drag and drop** one or more files directly into the table. The upload will start automatically.
* Or click **Upload a file** to open the file browser and select your files. Uploading will start automatically.

{% hint style="info" %}
Up to **three files** can be uploaded simultaneously.

Uploaded files will appear in the table along with a progress indicator.
{% endhint %}

## Status of a File

The status of each file indicates which step of the process was completed by JMap Cloud.

<table data-header-hidden><thead><tr><th width="163"></th><th></th></tr></thead><tbody><tr><td>Waiting</td><td>The file is waiting to be uploaded.</td></tr><tr><td>Processing</td><td>The file is being analyzed.</td></tr><tr><td>Analyzed</td><td>The file has been analyzed by JMap Cloud which identifies properties such as file type, CRS, attributes, etc. <br>It is available to create a spatial data source.</td></tr><tr><td>Uploading</td><td>The file is being uploaded. <br>A line in the Status column indicates the progress of the upload. <br>A circle in the header bar indicates the progress of the upload as well as the number of files being uploaded. <br>A message indicates whether the upload was successful or failed.</td></tr><tr><td>Uploaded</td><td>The file has been uploaded. It needs to be analyzed to be available for creating a spatial data source. </td></tr><tr><td>Error</td><td>There is an error in the file loading process.</td></tr></tbody></table>

## Managing a File

As with other JMap Cloud resources, you can manage a file by clicking the <img src="https://content.gitbook.com/content/9n1KCuTyIKwSpZcPcC6l/blobs/8m4xvrMS418SV0cyQWNm/menu.png" alt="" data-size="line"> icon that appears when hovering over the row. Available actions depend on the **file’s status**:

* **Create Data Source**
* **Delete**
* **Cancel Upload**
* **View Info**

### Creating a Data Source

If the file’s status is **Analyzed**, the **Create source** option becomes available. Click it to open the data source creation interface.

Enter the necessary details based on the file type. For more information, refer to the sections:

* [Vector/Raster Data Files](https://docs.jmapcloud.io/en/jmap-cloud-portal/user-guide-for-jmap-cloud-portal/connecting-data-data-sources/creating-data-sources/vector-raster-data-files)
* [Non-Spatial Tabular Data Files](https://docs.jmapcloud.io/en/jmap-cloud-portal/user-guide-for-jmap-cloud-portal/connecting-data-data-sources/creating-data-sources/non-spatial-tabular-data-files)

Click **Create** to generate the data source. It will then appear in the **Data Sources** tab.

### Pausing Upload

This option is available when the file is still uploading or being analyzed. It lets you stop the process.

### Displaying Information

Click **Display informations** to see the following details:

* File name, size, format, and status
* The ID of the user who uploaded it
* Upload date and time
* **Metadata**, which includes:
  * Unique file, organization, and task identifiers
  * Data layer names
  * Attribute names and types
  * Number of features or records

### Deleting a File

Click **Delete**. A confirmation prompt will appear.

{% hint style="warning" %}
Deleting the file **does not remove** any data source that may have been created from it. Only the file itself is deleted from the table.
{% endhint %}
