File validation and sanitization

Is there a way to validate/sanitize a file ?

I saw this post where the OP used the ‘file’ rule but I can not see it on Indicative API.

Hi @begueradj

Maybe this will help?
File validation doc

I have also heard there is way to process files manually
FIle streaming doc

Haven’t done anything with files myself, just throwing out some ideas.

I tagged my question with Validator.
Thank you for the feedback though.