About Upload upload function antd

the front end uploads successfully, and the interface status is 200, but the background colleague cannot find the file successfully uploaded from the front end in the server. I don"t know why

const props_ = {
  name: "file",
  directory: true,
  action: "http://172.16.238.58:10304/ssgz/swagger-UploadhjCCB",
  onChange(info) {
    if (info.file.status === "done") {
      message.success(`${info.file.name} `);
    } else if (info.file.status === "error") {
      message.error(`${info.file.name} `);
    }
  },
};

render() {
 return (
   <Upload {...props_}>
     <Button>
       <Icon type="upload" />
     </Button>
   </Upload>
 )
}
Aug.25,2021

if the backend API also returns 200, I think it should be a background problem. Let the background print log to see


the backend problem caused by a long time

.
Menu