prevent closing modal during upload

http://manage.dimagi.com/default.asp?113695