Add upload error code to ease testing
Add test for smaller file
Send file parts as binary

See: https://bugs.php.net/bug.php?id=48219
Merge remote-tracking branch 'davedevelopment/content-transfer-encoding'

* davedevelopment/content-transfer-encoding:
  Send file parts as binary
  Add test for smaller file
  Add upload error code to ease testing