Returning the number of images uploaded from a file upload or dropzone component

During webinar 5B I was asked how you could return the number of images uploaded within an upload server action.

Due to time constraints I deferred the answer and said I would post a reply in the forum

User who asked was Amediod1031 who’s forum name I should remember but for the life of me can’t

There are probably other ways of doing this but this is how I would do it

So we had the server action for upload.

image

Upload 1 is a record set and all we need is the count of records in the recordset
Select “Set Value” from Core Actions and set a variable equal to upload1.count() manually or with the expression picker like below

Selecting Output ensures this is passed back to App Connect in the data collection

image

Community Page
Last updated: