Uploading as an InputStream causes loads of errors because it can't reset the stream every time it needs to. Also, it can only do parallel uploads for files.
Therefore this changes it to write the TC InputStream to a temp file and then use that to upload.
I don't delete it afterwards, but it should put it in /tmp. Maybe it's something we need to think about cleaning up though?
Uploading as an InputStream causes loads of errors because it can't reset the stream every time it needs to. Also, it can only do parallel uploads for files.
Therefore this changes it to write the TC InputStream to a temp file and then use that to upload.
I don't delete it afterwards, but it should put it in /tmp. Maybe it's something we need to think about cleaning up though?
@philwills