File upload component not working with single file?

Has anyone encountered the file upload component not working when using the configuration to only allow single files?

The file data could not bind to the next action no matter what I did.

The only workaround was to set to multiple, but then set max to 1 and then bind the array value at index 0 for the next action in the workflow.

Hi @ericp :waving_hand:

If you are in preview mode, upload a file, and open the debug panel, you should see the file upload variable updated:

You should then be able to see the file object and bind it in the context of the workflow:

The value of the file upload is always an array. If you’re working with multiple files, you’ll want to loop through the array and bind to the file inside the loop as described here but if you’re working with a single file upload, you can bind directly to the file object like I did above.

Does that clarify things a little bit? Don’t hesitate to let me know if not.