Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Uplod file Attachments2 via Service Layer

0 Kudos
209
  • SAP Managed Tags:
bad content type error when sending an attachment to the service layer, reuse is mounted
POST https://xxxxxx/b1s/v2/Attachments2 HTTP/1.1
Cookie: B1SESSION=51981d56-b11b-11ed-8000-005056ae3132;HttpOnly;
Content-Type: multipart/form-data; boundary=33c01fae-c284-4d2f-9768-bb027ab57af9
Content-Length: 278568
Host: xxxxxxxx
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: okhttp/4.10.0

--33c01fae-c284-4d2f-9768-bb027ab57af9
Content-Disposition: form-data; name="file"; filename="image.png"
Content-Type: image/png
Content-Length: 278356
<image binary>
--33c01fae-c284-4d2f-9768-bb027ab57af9--
 I am sending from an android device I get this error, the deskop works, I would like to know where I am going wrong
1 REPLY 1

AlexGourdet
Product and Topic Expert
Product and Topic Expert
0 Kudos
176
  • SAP Managed Tags:

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,

Alex