Fixing file upload util which broke on upgrade to bootstrap 3.0