prevent closing modal during upload

http://manage.dimagi.com/default.asp?113695
Not 100% confident but tried to test as many things as I could