fix for data upload in firefox