How to check if there is a file upload needed or not with form submit

I have server connect form to insert data and upload an image. The image field is not mandatory.
How do I configure server connect with condition to check if file upload is needed or not. Right now, server connect gives error when no image is chosen.
It’s probably very simple, but I just can’t get the solution. Please help!

Never mind, I found the answer:

Make a condition to check if the file field is NOT POSTED:
if
{{!$_POST.deal_logo}}
then

else

1 Like

image
Stole this from another topic. This will only upload a file if the file field is filled with an image selected. Easier than if>else manually