jssimporter / python-jss

python-jss is deprecated. Please see the wiki for alternatives.
GNU General Public License v3.0
102 stars 41 forks source link

Pass file object to requests post #107

Closed moorereason closed 3 years ago

moorereason commented 3 years ago

Instead of reading a file's content in the call to post(), simply pass the file object. This resolves an issue with files larger than 2GB where resource.read() would trigger an error of "string longer than 2147483647 bytes."

Fixes #106

grahampugh commented 3 years ago

Thank you.

grahampugh commented 3 years ago

I will do a quick test and then merge it into the JSSImporter package once done.