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

Popular posts from this blog

command line - Use qwinsta in PowerShell ISE -

java - Incorrect order of records in M-M relationship in hibernate -

Python website log in: BIG-IP can not find session information in the request -