Just tried again, no luck. Here are the additional details about body contents Postman request body type is form-data with following contents. Key: file, Value=attachment (a file), Content-type: multipart/form-data (these parameters are recorded under Files upload tab in Jmeter) Key: attributes, Value= a jason, Content-type: application/jason (these parameters are recorded under Parameters tab in Jmeter)
On Mon, Apr 22, 2024 at 9:25 PM Aditya Singh <atul001.2...@gmail.com> wrote: > Try with Content-Type value as > “application/xml“ or “application/json” depending upon your response type. > > > Adi > > On Tue, 23 Apr 2024 at 6:50 AM, Nuwan Mudalige <nkgmudal...@gmail.com> > wrote: > > > multipart/form-data; boundary=bzfW................ > > > > > > > > On Mon, Apr 22, 2024 at 8:48 PM Aditya Singh <atul001.2...@gmail.com> > > wrote: > > > > > What is the content-type header value? > > > > > > > > > Adi > > > > > > On Tue, 23 Apr 2024 at 5:41 AM, Nuwan Mudalige <nkgmudal...@gmail.com> > > > wrote: > > > > > > > Yes, Adi. Tried that but still the same result in Jmeter. > > > > > > > > On Mon, Apr 22, 2024 at 8:01 PM Aditya Singh <atul001.2...@gmail.com > > > > > > wrote: > > > > > > > > > Hi, > > > > > Try checking the header that’s being passed in JMeter. > > > > > Is it similar to what you have in Postman?If not, make it similar > and > > > > give > > > > > it a try. > > > > > > > > > > Regards > > > > > Adi > > > > > > > > > > On Tue, 23 Apr 2024 at 4:21 AM, Nuwan Mudalige < > > nkgmudal...@gmail.com> > > > > > wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > I have a file upload API call which is working fine on Postman. > > > > > > > > > > > > While I am recording that Postman request by Jmeter it is > throwing > > > > "415 > > > > > > Unsupported Media Type" error. > > > > > > > > > > > > I manually built a Jmeter test following the Postman but still > > failed > > > > > with > > > > > > the same issue. > > > > > > > > > > > > Appreciate your expertise support to resolve this issue. > > > > > > > > > > > > Thank you! > > > > > > > > > > > > - Nuwan > > > > > > > > > > > > > > > > > > > > >