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

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

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -