file download fixed for all types