Fix file upload for safari