Fixing the put_file method parameters