bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Upload files directly in request content. #57

Open warownia1 opened 5 years ago

warownia1 commented 5 years ago

Streaming data directly in the request content seems more appropriate for uploading files than sending multipart forms.

Flask can use Request.data or Request.stream -- documentation Apache http.client has corresponding FileEntity and InputStreamEntity -- tutorial Python requests has request.post(url, data=fp) -- docs

Changing submission method should not change method definitions in the slivka client