Please help with MIME Type for .CSAR file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Please help with MIME Type for .CSAR file

Anju Dembla
Hi Team,

Can someone please help me with MIME type for .csar file. I am trying to
upload a csar file but it’s failing in Jmeter 5.2.1 with an error message
“MIME type may not be blank”

I tried running the same script in Jmeter 3.0 with blank MIME type and it’s
working fine.

Please advise.

Regards,
Anju
Reply | Threaded
Open this post in threaded view
|

Re: Please help with MIME Type for .CSAR file

glinius@live.com
Looking into  CSAR file extension
<https://www.filesuffix.com/en/extension/csar>   page:


> Category: Data files
> Application: CARIS
> Mime-type: application/octet-stream

So try using *application/octet-stream* and presumably it should resolve
your issue.

Going forward if you will face difficulties with manually configuring the
HTTP Request
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>
sampler for file uploads be aware that you can always just record the file
upload request using JMeter's  HTTP(S) Test Script Recorder
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder>
, just make sure to  copy the file(s) you will be uploading to the "bin"
folder of your JMeter installation
<https://www.blazemeter.com/blog/recording-file-uploads-jmeter/>   prior to
executing the request in browser, JMeter should be smart enough to detect
the media type of the file.  





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Please help with MIME Type for .CSAR file

Anju Dembla
Thank you. It worked..!!


Regards,
Anju

On Tue, 7 Apr 2020 at 3:15 PM, [hidden email] <[hidden email]> wrote:

> Looking into  CSAR file extension
> <https://www.filesuffix.com/en/extension/csar>   page:
>
>
> > Category: Data files
> > Application: CARIS
> > Mime-type: application/octet-stream
>
> So try using *application/octet-stream* and presumably it should resolve
> your issue.
>
> Going forward if you will face difficulties with manually configuring the
> HTTP Request
> <
> https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>
>
> sampler for file uploads be aware that you can always just record the file
> upload request using JMeter's  HTTP(S) Test Script Recorder
> <
> https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder>
>
> , just make sure to  copy the file(s) you will be uploading to the "bin"
> folder of your JMeter installation
> <https://www.blazemeter.com/blog/recording-file-uploads-jmeter/>   prior
> to
> executing the request in browser, JMeter should be smart enough to detect
> the media type of the file.
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>