filestack/filestack-ruby

Filestack scanning viruses

huyvohcmc opened this issue ยท 6 comments

Sorry to ask this question but does filestack scan viruses for every uploaded file? Is there a doc somewhere?

Why was close?

@julioalucero because it doesn't.

@huyvohcmc Filestack support it https://www.filestack.com/docs/concepts/workflows/virus-detection/.
But seems that this library still does not support send something like:

client.upload(filepath: 'tmp/test.pdf', options: {'workflows': ["23dfd7cb-359e-4e53-8918-dca35790a74b"]})

Or I'm sending the wrong params ๐Ÿค”, I didn't found docs about it

For the records, the correct url is:
https://cdn.filestackcontent.com/<APIKEY>/store=workflows:["<workflow_id>"]/<external-url>

Updated:
To use a Workflow the correct url is to use the workflow_id without quotes:

https://cdn.filestackcontent.com/<APIKEY>/store=workflows:[<workflow_id>]/<external-url>

Example:
"https://cdn.filestackcontent.com/DFDmms4UET7iE234ma32G2343/store=workflows:[jskfj9023-359e-4e53-8918-ajsdklfj90238493]/https://cdn.filestackcontent.com/kdjfkj90234293kjsdf"

@julioalucero @huyvohcmc I apologize for a late reponse. In filestack-ruby 2.7.0, I've added a workflows support.
Now you should be able to do: client.upload(filepath: 'tmp/test.pdf', options: { workflows: ["23dfd7cb-359e-4e53-8918-dca35790a74b"]}).
Let me know if it helps.