0
node.js zum Ausdruck bringen können nicht Datei durch Strom hochladen
router.post("/upload", function(req, res, next) {
var form = new multiparty.Form();
form.on("part", function(part) {
if (!part.filename) {
part.resume();
return;
}
var fd = new FormData();
fd.append("upload", part);
fd.submit(storageUrl, function(err, res0) {
if (err) {
console.error(err);
res.status(500);
}
res.end();
});
});
form.parse(req);
});
aber ich bin immer Fehler auf dem Rückruf vorlegen.
{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
Wer weiß, wie Sie das bitte beheben? Vielen Dank.