---
schema_version: "1"
id: ae797b2cfad5a86dbc44bc4f58fc87e04501e8f95ee8097f4183cdcd0b69b45c
title: Upload Files and Images in Omniscripts
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_upload_files_and_images_in_omniscripts_23397.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_upload_files_and_images_in_omniscripts_23397.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5e6228fd78f8b7c4c2f440f1e5d82e6d92876847bb01dcaf6ded3df7108b42af
description: To upload files in an Omniscript, add a File input element. To upload an image, add an Image input element. Details about uploads are added to the Files node of the Omniscript's Data JSON.
products:
  - Omnistudio
release: "264"
---
# Upload Files and Images in Omniscripts

To upload files in an Omniscript, add a File input element. To upload an image, add an Image input element. Details about uploads are added to the Files node of the Omniscript's Data JSON.

By default, files are uploaded to Salesforce Content Documents directly. To associate one or more Salesforce objects with the uploaded file, specify a comma-separated list of object Ids in the **Content Parent Id** field. In Salesforce, the uploaded files are listed in the sObject detail page's Content section.

To specify a Vlocity Open Interface to be run after the file or image is uploaded, set the **Remote Action** section's **Remote Class** and **Remote Method** fields. As input, the specified method receives a Map<String, Object> list containing the File data from the Data JSON. The options contain the remoteOptions and the filesMap, which contains the Ids of any Content documents that were created.

By default, File and Image elements accept a file size of up to 2GB.

Omniscripts and Flexcards support all image file types by default. If set, the lightning-file-upload `accept` attribute filters file types in the user's file browser. If set, the **Don't allow HTML uploads as attachments or document records** security setting disallows .svg image files. See [Lightning Web Component File Upload](https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation).

## Add a File or Image to Omniscript

Add and configure a File or Image element to enable the upload of files and images. By default, the File and Image elements accept a file size of up to 2GB.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)

Note

The Image and File elements don't work in preview because they use SFDC components. When Image and File elements are required in a Step, the Preview cannot advance past the Step. Marking File and Image elements as Required only before activating the Omniscript is recommended.

Omniscripts and Flexcards support all image file types by default. If set, the lightning-file-upload `accept` attribute filters file types in the user's file browser. If set, the **Don't allow HTML uploads as attachments or document records** security setting disallows .svg image files. See [Lightning Web Component File Upload](https://developer.salesforce.com/docs/component-library/bundle/lightning-file-upload/documentation).

1. From the elements panel, drag a **File** or **Image** element to the canvas.
2. Enter an a content parent object ID, or comma-separated list of object IDs, to attach the Content Document to a parent record. When left blank, the Content Document does not attach to a parent record.
3. When configuring the Image element, allow uploads of multiple images, if required.
4. Use one of the JSON node names from Image and File to apply a condition to another element:
    
    ```
    "yourFileElementName": [
              {
                "data": "0693g000000T1ZFAA0",
                "filename": "isolated-on-png.png",
                "vId": "0683g000000T11iAAC",
                "size": 8234
              }
            ]
    ```