I want to create a Contact form and then there is an attachment part how do i get the attachment data from postman?

System Information

v4.9.2- Strapi Version:

  • Operating System:
  • Database:
    v18.18.2- Node Version:
  • NPM Version:
    1.22.19- Yarn Version:

here is my conact us
{
“kind”: “collectionType”,
“collectionName”: “contact_uses”,
“info”: {
“singularName”: “contact-us”,
“pluralName”: “contact-uses”,
“displayName”: “Contact-us”,
“description”: “”
},
“options”: {
“draftAndPublish”: true
},
“pluginOptions”: {},
“attributes”: {
“heading”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“email”: {
“type”: “email”
},
“message”: {
“type”: “text”
},
“attachment”: {
“type”: “media”,
“multiple”: true,
“required”: false,
“allowedTypes”: [
“files”,
“images”,
“videos”,
“audios”,
“files”
]
},
“captcha”: {
“type”: “string”
}
}
}
i gave all permissions for upload plugin and contact-us
when i upload files in postman via post http://localhost:1337/api/upload
i am getting id url and all data as response then using the url when i am trying to fill the contact us form http://localhost:1337/api/contact-uses

{
“data”: {
“heading”: “ContactUS”,
“name”: “Jacob Potter”,
“email”: “testemail@gmail.com”,
“message”: “URL-encoded data uses the same encoding as URL parameters. If your API requires url-encoded data, select”,
“attachment”: {
“id”: 19, // The ID of the uploaded file
“url”: “/uploads/creative_process_c2331cc442.zip”
},
“captcha”: “xyz”
}
}
i am not getting attachment details in response
{
“data”: {
“id”: 2,
“attributes”: {
“heading”: “ContactUS”,
“name”: “Jacob Potter”,
“email”: “testemail@gmail.com”,
“message”: “URL-encoded data uses the same encoding as URL parameters. If your API requires url-encoded data, select”,
“captcha”: “xyz”,
“createdAt”: “2023-12-27T08:24:04.638Z”,
“updatedAt”: “2023-12-27T08:24:04.638Z”,
“publishedAt”: “2023-12-27T08:24:04.636Z”
}
},
“meta”: {}
}
any clue why i am not getting my attachment details here