Forum Discussion
MarcusJ
10 years agoModerator
Hi,
Change the Content-Type in the attachments tab to image/svg+xml. For the type of file by default it is set to application/octect+stream. The request will still be sent in two parts but the first part will be text/plain for the Content-Type and second will be image/svg+xml with the contents of the file.
------=_Part_3_1270470141.1404155087471
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: form-data; name="part"
image.svg
------=_Part_3_1270470141.1404155087471
Content-Type: image/svg+xml; name=Bitmap_VS_SVG.svg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="Bitmap_VS_SVG.svg"; filename="Bitmap_VS_SVG.svg"
<contents of the file>
Change the Content-Type in the attachments tab to image/svg+xml. For the type of file by default it is set to application/octect+stream. The request will still be sent in two parts but the first part will be text/plain for the Content-Type and second will be image/svg+xml with the contents of the file.
------=_Part_3_1270470141.1404155087471
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: form-data; name="part"
image.svg
------=_Part_3_1270470141.1404155087471
Content-Type: image/svg+xml; name=Bitmap_VS_SVG.svg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="Bitmap_VS_SVG.svg"; filename="Bitmap_VS_SVG.svg"
<contents of the file>
Related Content
- 2 years agoTestQA1
Recent Discussions
- 27 minutes agoyassir
- 23 hours agodipsthorat
- 2 days agoisbiat