BG95-M2 AT+QHTTPPOST Image problem

command Line
AT+QHTTPCFG=“contextid”,1
OK
AT+QHTTPCFG=“requestheader”,1
OK
AT+QHTTPCFG=“contenttype”,3
OK
AT+QSSLCFG=“sslversion”,1,3
OK
AT+QSSLCFG=“seclevel”,1,0
OK
AT+QHTTPURL=102,80
CONNECT
https://xxx.xxx.com/v3/api/Image/{a78a06a2-75ea-40e8-ba3d-xxxxxxxxxx}?timestamp=20210513T161000Z

AT+QHTTPPOST=2615,80,80
CONNECT
POST /v3/api/Image/{a78a06a2-75ea-40e8-ba3d-xxxxxxxxxx}?timestamp=20210513T161000Z HTTP/1.1
Host: xxx.xxx.com
Authorization: bearer KRLlv2ZIvhlg4-0i4_…
Content-Type: multipart/form-data; boundary=----8d916e5fb439d49
Content-Length: 2144

----8d916e5fb439d49
Content-Disposition: form-data; name=“image”; filename=“123.jpeg”
Content-Type: image/jpeg

(image data to byte)
----8d916e5fb439d49–

+QHTTPPOST: 0,400,148

AT+QHTTPREAD=80
{“ExceptionCode”:3000,“DetailMessage”:“can not find uploaded file”,“ExceptionDecription”:“The format or data type of input parameteres are invalid”}

The issue:

  1. I have failure to post image, it returned +QHTTPPOST: 0,400, i can not find what code 400 means on manual. Could you please let me know what httprspcode code 400 means?

  2. And i want to know how to post imagine with Authorization header, is it possible to provide me a sample how to post it?

  1. for err code 400 , it is public http protocol ,

it means that “bad request " , or " invalid hostname”

  1. For post image, infact , we do not indentify the type of data , it is same

the below this one example of AT log

https://cnquectel-my.sharepoint.com/:f:/g/personal/america-fae_quectel_com/Eh4BDiDQ5ihDmOyxvp8jJkkBUHW_yQhuRKwYnTuYMxiA-w?e=0wZHdE

Thank you for the reply.

But I think post image data type is byte array. (Content-Type: image/jpeg)

Because I use .net httpWebRequest to try upload is ok, but I can’t use BG95-M2 to upload,

so I don’t know how to solve this problem.

I hope there are successful examples you can provide me for reference, thank you.