Forum Discussion

hieuln1991's avatar
hieuln1991
New Contributor
8 years ago

how to change Content-type of attached file in REST API

I attached a mp3 file into the request, but the Content-Type is application/octet-stream.

But my server side only accepts audio/mp3.

How can I change Content-type to send the request with audio/mp3 Content-Type?

 

 

 

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    You can just type the value "audio/mp3" in the Media-Type?
    • hieuln1991's avatar
      hieuln1991
      New Contributor

      I did it. but I still not effect.

       

      in draw request It still display content type is application/oct...