Yamale icon indicating copy to clipboard operation
Yamale copied to clipboard

Support file object in make_data()

Open pandolf99 opened this issue 5 years ago • 1 comments

When receiving a file from a HTTP PUT request it seems tedious to have to save the file or to convert it to string when using make_data() method. Would be great if I could just put the file object directly to make_data().

pandolf99 avatar Sep 07 '20 23:09 pandolf99

Thanks for your interest in Yamale.

I wouldn't mind extending the content attribute to accept a string-like object or a file-like object. It may take a while for us to get to this feature request. We do accept pull requests if you'd like to contribute.

mildebrandt avatar Sep 08 '20 03:09 mildebrandt