How to calculate file size in mb

HI,

how about the following sample? This sample divides into 2 files if the file is greater than 20MB and works with recursive logic.

Sample
Sample20240214-4.zip (4.6 KB)

note: please modify content of filepath and intChunkSize if necessary

Regards,