Skip to main content

File Upload

Properties | Events | Methods

File upload allows users to attach files (like documents, images, PDFs, etc.) from their device

Properties

Design

Default Image

'defaultimage' string Set the Image which has to be set default (before appearing a new photo)

Custom

Max Filesize(MB)

'maxfilesize' string Defines the maximum file size allowed for upload (eg : 20kb,30mb,100bytes,40gb)

File Extensions

'fileextensions' string Specifies the allowed file extensions to restrict uploads to specific file types (e.g., JPG, JPEG, PNG, etc.).

Camera Only

'cameraonly' boolean If enabled, only the camera option will be shown for capturing a photo. The captured image can be edited.

Attachment Types

'atttype' string The Attachment Types can be set to Profile, Attachment, Image, Audio,& Photo.

  • Profile – Allows capturing or uploading an image for profile use.
  • Attachment – Allows uploading any file type.
  • Image – Allows uploading only image files.
  • Audio – Allows recording and uploading of audio files.
  • Photo – Allows capturing or uploading a photo for use as a profile picture.

Image Retrieval

'Imgretrieval' boolean If enabled, once a file is uploaded in the initial step of a workflow, it can only be viewed in subsequent steps. Editing or deleting is not allowed afterward.

Badge

'badge' string Allows entry of a badge number or text when Photo is selected as the attachment type.

Photo type

'phototype' string Determines the processing of uploaded images:

  • Normal – Uses the image file as uploaded.
  • Thumbnail – Compresses the uploaded image file to reduce size.

Photo Width(px)

'photowidth' number Specifies the width (in pixels) of the photo to be stored or displayed.

Photo Height(px)

'photoheight' number Specifies the height (in pixels) of the photo to be stored or displayed.

Storage Type

'storagetype' string Specifies where the uploaded file will be stored. Supported options:

  • CDN – Stores the file on a Content Delivery Network.
  • Default Connector – Stores the file in the default backend system.

Storage Path

'storagepath' string Specifies the directory path for saving files, applicable only when CDN is selected as the storage type.

Data

Image Type

'imgtype' string Select the image type to displayed as Normal or Thumbnail form

Methods

For more information on Methods in this section, see the General-Methods.

Events

No Applicable Events included