How to check file size of spreadsheet file

In my workflow, I am running a Postgres node that executes a query and then a spreadsheet file node that writes the output of the Postgres node to a spreadsheet file. I want to use an IF node to check if the size of the spreadsheet file is > 15mb. I’m not able to figure out which node(s) (if any) I can use to get the file size of the spreadsheet file. Is this possible?

Hi @timinute

I’ve created this example, using a spreadsheet file node that create a csv file, and then with a IF node I check the filesize through: “{{ $binary.data.fileSize }}”.
Is this what you expected?

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.