ruby on rails - Restrict s3_direct_upload to specific filetypes -
i have quick question. i'm using s3_direct_upload gem facilitate uploads s3 bucket. i'd restrict uploads pdfs only. how can go this?
thanks!
see gem's documentation, jquery plugin options section.
it looks add before_add
callback function checks ensure filename ends in .pdf
, , returns false
if doesn't.
Comments
Post a Comment