Scan files for virus on upload

One of our clients has the desire to check files on viruses. Is this already happening if not, how would we go about doing using DatoCMS?

@ramon.gebben we don’t do that internally, but you could probably use a third party anti-virus triggered by a webhook on asset upload?

From the docs it’s not very clear how we would do that?

Would we create a model, lets call it “Upload”, and add the hook to this record type or is there a different way to only get a hook fired on asset upload?

Yes, you can trigger a webhook on asset creation and update, like so:

immagine