Archived from the Transloadit support forum. Originally posted on January 5, 2012; details may be outdated, see our docs for current behavior. Original thread
I am trying to restrict and upload of resumes to a s3 bucket to .doc and .doc files, also these need to be under 2MB, below is my template but the docx files are caught by FILE_FILTER_DECLINED_FILE, is this possible to achevie using the file filter step?
Regards,
Carl.
{ auth "REDACTED"},
"steps": {
"files": {
"robot": "/file/filter",
"accepts": [
["${file.mime}", "regex", "application/msword"],
["${file.mime}", "regex", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"]
],
"result": true,
"declines": [
["${file.size}", ">", "2097152"]
],
"error_on_decline": true
},
"store":
{ "robot": "/s3/store"
, "bucket": "xxx"
, "key": "xxx"
, "secret": "xxx"
, "acl": "private"
}
} }