Reject the send API call if the given fileInput has not selected files. Fixes #2486.
Merge branch 'master' into gh-pages