Fix upload file in firefox and safari