---
schema_version: "1"
id: 8b04c281ba662c55221333bec5fa06ca8fa42e9344cfdf6a352178557a446a1f
title: "Data Capture Flow Screen Component: Upload Image"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/mfs_data_capture_components_upload_image.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.mfs_data_capture_components_upload_image.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bd31cfafe04ae5c0b7a44978065595e87a77a7481e8d4b44c4c2375534306576
description: Let users upload and annotate images.
products:
  - Field Service
release: "264"
---
# Data Capture Flow Screen Component: Upload Image

Let users upload and annotate images.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: &nbsp;Lightning Experience in <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

![Data Capture Upload Image Component](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/mfs_dc_component_upload_image.png)

## Configure the Upload Image Component

You can select resources from the flow, such as variables or global constants, or you can manually enter a value.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:27.247956403269757%">
          <col style="width:72.75204359673025%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d78662e79">Attribute</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d78662e82">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Label</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">The label that the user sees.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 "><strong class="uicontrol">Allow Metadata Edit</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines whether the user can edit the image file’s name and
              description.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Background Color</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines a CSS color. Defaults to white. When Preserve Transparency is set to
              false, the output image's background is set to this color before the input image is
              resized and drawn on top.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Compression Quality (Percent)</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">A number between 0 and 100 that determines the compression quality. If omitted,
              the default is set by the browser or webview being used. Note: The browser or
              webview can always choose to override this value if it deems it necessary.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Content Documents</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">A list of the content document IDs of the uploaded images. Optional. You can
              enter a default collection of content document IDs. </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Disabled</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Determines if the user can change the component.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Enable Compression</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Determines whether the images are compressed.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">&nbsp;</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Enable Image Smoothing</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Determines whether scaled images are smoothed or not. Defaults to true.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Height</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">The target height when resizing an image. If the height isn't set, the original
              image height is the default. If the resize mode is set to None, this flag is
              ignored.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 "><strong class="uicontrol">Image Date Time Field Name</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines the API name of the field that saves the date and time of uploaded
              images. To create the field, from the object management settings for Content
              Version, go to Fields &amp; Relationships and click <strong class="uicontrol">New.</strong>
              Select <strong class="uicontrol">Date/Time</strong> as the data type. Enter a label, save the
              field, and copy the value from the Field Name column. For example,
              <kbd>Image_DateTime__c</kbd>.
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 "><strong class="uicontrol">Image Location Field Name</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines the API name of the field that saves the location of uploaded images.
              To create the field, from the object management settings for Content Version, go to
              Fields &amp; Relationships and click <strong class="uicontrol">New</strong>. Select
              <strong class="uicontrol">Geolocation</strong> as the data type. Enter a label, save the
              field, and copy the value from the Field Name column. For example,
              <kbd>Image_Geolocation__c.</kbd>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 "><strong class="uicontrol">Image Name</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines the name assigned to each uploaded image. The images are numbered
              sequentially, for example "After Fix 1", "After Fix 2".</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Preserve Transparency</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Defines if the transparency info of the input image (if any) should be
              preserved. Defaults to true. If the input image is a GIF/PNG and this flag is set to
              true, the output image is a PNG. For all other cases, the output is a JPEG.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Related Record ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">
              <p>The ID of the record to associate the images with.</p>
              <p style="margin-bottom:0;">If you want to relate the uploaded images with a new record that is only created
                at the end of the flow, the record ID is not available. However, add a Loop
                component to the end of the flow to overcome this behavior. Loop over the Content
                Documents attribute to get the IDs. Then define a Create Record component to
                create a ContentDocumentLink object, which relates the images to the record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Required</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Determines if the user must upload an image.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Resize Mode</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">
              <p>Determines how the image will be resized. The options are:</p>
              <ul>
                <li>Fill: Resizes the image to fill the target dimensions. </li>

                <li>
                  <p>Contain: Resizes the image to fit within the target dimensions while
                    maintaining the original aspect ratio. Default.</p>
                </li>

                <li>None: Retains the original image dimensions.</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Resize Strategy</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">
              <p>Determines how to resize the image. If Resize Mode is set to None, this flag is
                ignored. The options are: </p>
              <ul>
                <li>Reduce: Resizes the image only if it’s larger than the target size.
                  Default.</li>

                <li>Enlarge: Resizes the image only if it’s smaller than the target size.</li>

                <li>Always: Resizes the image to the target size, regardless of the original
                  dimensions.</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 "><strong class="uicontrol">Use Camera Only</strong></td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">Users capture images using only the camera. Access to the gallery is
              unavailable.</td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e79 ">
              <strong class="uicontrol">Width</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d78662e82 ">The target width when resizing an image. If the width isn't set, the original
              image width is the default. If the resize mode is set to None this flag is
              ignored.</td>

          </tr>
        </tbody>
      </table>