Prevent user from closing form during upload using single upload with upload progress bar