changes permissions after file is downloaded