Fixing the put_file method file parameter