solve document download on iOs