Reject the send API call if the given fileInput has not selected files. Fixes #2486.