Upload Image from react fetch to strapi

System Information
  • *Strapi version 3.6.0:
  • Operating System mac os x:
  • SQL Lite:
  • 14.5:
  • 6.14.9:
  • Yarn Version:

I have an issue for upload file to strapi
here is the config part on my React

/////–> REACT SubmitHandler —>//////

let formData = new FormData();
formData.append(“data”, JSON.stringify({ description }));
formData.append(“files.name”, file);

console.log("FROM CREATE LOG USER", user);
const response = await fetch(`${API_URL}/posts`, {
  method: "POST",
  body: formData,
});

/////–> ERROR —>//////
strapi statusCode":400,“error”:“Bad Request”,“message”:"Please upload an image