Issue #699, upload not getting zipped. 

The code would not zip on http error, this is fixed.