Do not trigger the upload process if there is no file to upload (closes #264)