Page 1 of 1

Filter by file size

Posted: Tue Jan 31, 2023 1:18 pm
by FabianF
I would like to make a filter where files over 100 Mb is sent to one path and files under 100Mb to another, but I find no way to do it. It seems it should be something simple, could someone point me in the right direction?

Re: Filter by file size

Posted: Tue Jan 31, 2023 1:28 pm
by magnussandstrom
FabianF wrote: Tue Jan 31, 2023 1:18 pm I would like to make a filter where files over 100 Mb is sent to one path and files under 100Mb to another, but I find no way to do it. It seems it should be something simple, could someone point me in the right direction?
Define conditions with variables:
[Job.ByteCount] Less then 100000000
[Job.ByteCount] Equal or more then 100000000

Re: Filter by file size

Posted: Tue Jan 31, 2023 1:29 pm
by patej
You can use the [Job.ByteCount] variable in a condition with variables so you have to convert MB to Bytes first (100 MB = 104875600 bytes):
Image

Re: Filter by file size

Posted: Tue Jan 31, 2023 1:36 pm
by FabianF
magnussandstrom that's the simple solution I was looking for – thanks!