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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -