fix upload on Firefox