python_api icon indicating copy to clipboard operation
python_api copied to clipboard

Extend the Connection class to "PUT" a file

Open BillFarber opened this issue 9 years ago • 0 comments

The Connection class permits the user to perform a PUT request, possibly including data. However, I have found that this method is not convenient for uploading files. Particularly non-json files.

Therefore, I will be implementing a putFile method in the Connection class. This method will accept a data argument instead of a payload argument. Additionally, when it calls Request.put, it uses the data argument instead of the json argument.

BillFarber avatar Feb 15 '16 17:02 BillFarber