How to check if imported CSV file contains rows of data?

Hi,

I have an Import CSV server action which I need to check if its empty.

image

How do I return an error if the file only contains headers and no row data?
image

I tried the following, image and image

image

Thanks,
Ray.

Community Page
Last updated: