use new version of jquery-file-upload.
upgrade jquery-rails (3.0.4)
add validation before saving.