Isn't `filePart.sendEnd(output);` missing there?