Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


stevja01
2013-03-19T17:14:53Z
Is there a way in VisualCron to trigger a download using FTP task type when file size is between X and Y? I'm looking for a way to automatically poll for a file with a given name and if it's a new file AND the file size is > 20 MB but < 75 MB we can download it. I don't see a way to setup a condition for a file size threshhold.
Sponsor
Forum information
bbusse
2013-04-05T15:32:51Z
Originally Posted by: stevja01 

Is there a way in VisualCron to trigger a download using FTP task type when file size is between X and Y? I'm looking for a way to automatically poll for a file with a given name and if it's a new file AND the file size is > 20 MB but < 75 MB we can download it. I don't see a way to setup a condition for a file size threshhold.



Yes, you absolutely can.

You need to think about it a different way though. Conditions are not what you'd want. What you do is create a trigger on the job that is a 'Remote File' trigger. Then, in the options, select your Connection and set your options such as the location (i.e. /username/files/ ) and the SIZE, which is what you're interested in.

I've attached screenshots that work with the criteria you set. In my settings, i'm looking for ANY file though, not a specific name. The SIZE tab is a little backwards in my head, but the settings in my screenshot work properly. This seemed to crash my 6.1.4 installation, I just upgraded to 6.2.1 and its working like a champ.

BTW, This might be a glitch, but I copied a 25mb file to my SFTP server and it ran. Then in the process of gathering these screenshots, I edited the trigger and pressed OK to save everything and get back out. It ran again as if since my trigger was modified.... the files were somehow 'new' again. Likely not desired behavior, so FYI... do some testing.


Brian
bbusse attached the following image(s):
stevja01
2013-04-05T15:55:52Z
Thank you so much Brian, this is very helpful. -Jane
Scroll to Top