PutFileWithSetup for setting custom request headers