How I need to pass the files key if i had a compnent with media field in it

System Information
  • Strapi Version: 3.2.4
  • Operating System: mac
  • Database: mongo
  • Node Version: 14
  • NPM Version:
  • Yarn Version:

let us. say I have restaurant content type in restaurant there is a menu component , menu component have media field called pdfFile

How my form-data request should look like

I tried something like this :
data: {“name”: " example"} : FILE

it didn’t work


didn’t work