Skip to content

Flow screen

On the Screen Flow, set these inputs on Image Upload Enhanced. The component title defaults to Image Upload.

InputWhat to set
Target width and heightThe largest width and height, in pixels, for the processed image.
Preview width and heightHow large the preview looks on the screen.
Preserve aspect ratioWhen true, the preview fits inside that box without stretching.
InputWhat to set
Compression quality1 keeps the most detail. Lower numbers make a smaller file.
Preserve transparencyTrue keeps a PNG. False flattens to a JPEG.
Background colorThe fill used when flattening. The default is white.
Preview messageOptional rich text above the preview.

The extension follows the transparency setting: .png when transparency is kept, otherwise .jpg.

Store these on the screen element, or assign them to Flow variables:

OutputMeaning
imageData64The processed image as base64, without a data:image/... prefix.
fileNameThe name of the file they uploaded.
fileExtension.jpg or .png.
fileSizeSize of the processed file, in bytes.
errorA message when processing fails. Otherwise blank.

Check error in a Decision when a failed upload should take a different path. The next step is Save the file.