properly handle case when user wants to cancel file upload
Merge pull request #85 from JLarky/fix-file-upload

properly handle case when user wants to cancel file upload