Set file attributes correctly when retrieving the file from cloud.