sending this
i tried to use request bin to check what happening
but when i sed with file parameter its have body empty in request bin but when i send without file parametr its body says
----------------------------723577595354593132208293
Content-Disposition: form-data; name=“type”
‘template’
----------------------------723577595354593132208293
Content-Disposition: form-data; name=“is_super_admin”
false
----------------------------723577595354593132208293
Content-Disposition: form-data; name=“user_id”
67a7992251c099513d21fd38
----------------------------723577595354593132208293–
my api docs is
post} /api/attachments/upload/:type?user_id=string
header: {
‘Content-Type’: ‘multipart/form-data’
}
form data is
{
type: ‘sticker|template’,
file: binary,
is_super_admin: boolean
user_id: string
}