# Assets

Simple store supports the upload, storage and management of assess (files) that can be associated with Products and Categories.  Examples of assets include: jpg, gif, png, pdf.

### Portal View

#### Accessing Assets&#x20;

Assess the Assets screen in the console via the console navigation bar.

<div align="left"><img src="https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M5oHgu0ieTtKvEmoTlr%2F-M5oIIADuzDwgDfVgeyD%2Fimage.png?alt=media&#x26;token=4084c66c-9011-421b-afdf-a406b3bccad2" alt=""></div>

#### Add New Asset

Click Upload File to upload and create the new asset.

![](https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M5oHgu0ieTtKvEmoTlr%2F-M5oIhZ8VDsS8ER2q-Mf%2Fimage.png?alt=media\&token=a3f60293-82e1-40e6-b859-42d9af577834)

Specify a Title, Description and Access Permission.

Access Permission allow an assets to be defined as Public or Private

Drag and Drop the asset to upload.

<div align="left"><img src="https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M5oHgu0ieTtKvEmoTlr%2F-M5oJES1dlCvg9ox5rNp%2Fimage.png?alt=media&#x26;token=911b0d82-8d9b-4e26-beb7-b1fb955cd5cc" alt=""></div>

Click **Submit**.

#### Edit Assets

Assets can be accessed by clicking on the main asset screen:

<div align="left"><img src="https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M5oHgu0ieTtKvEmoTlr%2F-M5oK1RqClsALzCWr8oC%2Fimage.png?alt=media&#x26;token=451bb86d-a9ef-4c3b-98ad-ac0128a9e78d" alt=""></div>

File Details can be edited.

<div align="left"><img src="https://3079805559-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZA-vUHasjE__5Y0ghc%2F-M5oHgu0ieTtKvEmoTlr%2F-M5oKBle4RnwcB2OLZYq%2Fimage.png?alt=media&#x26;token=3c1fe299-b28a-47ed-a1ce-00b25eb7a672" alt=""></div>

Click **Save** to commit your modifications.

Assets can be deleted by clicking the **Delete** button.

### Asset Properties

#### Folders

Assets can be stored in a hierarchy of folders.

{% tabs %}
{% tab title="Attributes" %}

| Element      | Description                                                                                                 |
| ------------ | ----------------------------------------------------------------------------------------------------------- |
| folderId     | Unique Identifer for the Folder                                                                             |
| version      | An incremental version number tracking changes to the folder configuration                                  |
| name         | Name                                                                                                        |
| parentId     | A parent folder identifier to support the creation of a hierarchical/tree based structure of related folder |
| attributes   | Attributes are a list of Key/Value to support customisation of a folder                                     |
| {% endtab %} |                                                                                                             |

{% tab title="Sample Object" %}

```
{
  "folderId": "string",
  "version": "string",
  "name": "string",
  "parentId": "string",
  "attributes": {}
}
```

{% endtab %}
{% endtabs %}

#### Files

Files represent the range of assets that can be stored and managed.

{% tabs %}
{% tab title="Attributes" %}

| Element          | Description                                                                |
| ---------------- | -------------------------------------------------------------------------- |
| fileId           | Unique Identifer for the File                                              |
| version          | An incremental version number tracking changes to the folder configuration |
| title            | Title of Image                                                             |
| description      | Description                                                                |
| contentType      | Content-Type of file                                                       |
| fileName         | File Name                                                                  |
| length           | File Length                                                                |
| width            | Width of File (images)                                                     |
| height           | Height of File (images)                                                    |
| accessUrl        | Access Url                                                                 |
| accessPermission | Access Permission                                                          |
| attributes       | Attributes are a list of Key/Value to support customisation of a folder    |
| isActive         | Is Active                                                                  |
| folderId         | Reference to Containing Folder Id                                          |
| edgeUrl          | Edge Url                                                                   |
| {% endtab %}     |                                                                            |

{% tab title="Sample Object" %}

```
{
  "fileId": "string",
  "version": "string",
  "title": "string",
  "description": "string",
  "contentType": "string",
  "fileName": "string",
  "length": 0,
  "width": 0,
  "height": 0,
  "accessUrl": "string",
  "accessPermission": 0,
  "attributes": {},
  "isActive": true,
  "folderId": "string",
  "edgeUrl": "string"
}
```

{% endtab %}
{% endtabs %}
