How does the proxy of nodeJS act as an agent for file upload?

problem description

using VUE nuxt scaffolding to develop a server rendering project, all interface requests are completed by the @ nuxtjs/proxy agent. You can confirm that the agent is accessible, but cannot get the image resources

when you find that the agent cannot be used to upload the image.

the environmental background of the problems and what methods you have tried

it is possible to upload pictures directly using the Postman tool on the computer, but it is not possible to switch to the project (the error message is as follows)

related codes

/ / Please paste the code text below (do not replace the code with pictures)
the configuration of nuxt.config.js is as follows

clipboard.png

:

clipboard.png

clipboard.png

what result do you expect? What is the error message actually seen?

Oct.25,2021

try to forward all request headers and also forward all final server response headers

"/upload":{
    // 
    // ...
    onProxyReq:function(proxyReq, req){
        Object.keys(req.headers).forEach(function (key) {
            proxyReq.setHeader(key, req.headers[key]);
        });
    },
    onProxyRes:function(proxyRes, req, res){
        Object.keys(proxyRes.headers).forEach(function (key) {
            res.setHeader(key, proxyRes.headers[key]);
        });
    },
}

resolved! Do not write content-type

when uploading files
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e523b8-451b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e523b8-451b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?