There are two requests for antd upload to upload a file. How should the backend write to get the file?

use multipart/form-data for the first time No Content
the second time

before, I also thought it was caused by the component. The back end said that Access-Control-Allow-Headers is not the default request, so the request is not a simple request, like this

graphqlfetchheader

.
Feb.28,2021

Why did it happen twice?
We never met. There must be something wrong with the
parameter.


additional requests can be sent to Filter if it is favicon.ico.


backend settings Access-Control-Allow-Headers plus Authorization,X-Requested-With
these two headers are required for uploading a file request
and you can upload normally

.
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-1bebfb4-31ada.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-1bebfb4-31ada.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?