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 - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

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