Question about photo upload

Hi, I’m trying to implement the file upload feature where the user is required to upload a valid ID. Is there a way where we can preview the photo after it is selected before form submission?

Hi @Walds,

There is a formula function to do exactly what you want !
Use fileToUrl as a binding in the preview image :

if(<your file variable>,fileToUrl(<your file variable>),"<your placeholder image>")

5 Likes

Hi @Marc,

Tried the method above, getting the following error:

Hi @pacifist9722 :wave:

Can you show us the detail of the File 1 - value object?

@Joyce figured out the same thanks.

I was putting (file1-value) in as the parameter. It should have been (file1-value.0)

2 Likes