How I proxied a file upload through a Next JS middleware posted under Code AJAXJavaScriptNext.jsNode.js The short answer, it turns out that Axios knows what to do with a Buffer object.