handling download=1 param in file serving actions