Upload error returns non-zero