Fix #5 and previous commits.
Fix #5 and previous commit.

We now use the use the multer-provided file size instead of creating a buffer during upload.
Fixed crash when api returns an error.