Recent searches
No recent searches
Image from camera failed to upload
Posted Dec 12, 2023
I used ZendeskSDKMessaging for live chat in iOS. When I try to take a photo from the camera and send it, it always failed to upload, but when I uploaded it from Image Picker, it uploaded normally.
1
5
5 comments
Tipene Hughes
Hey fares elsokary,
Can you share any errors you might be seeing in the logs when the failure occurs. If you can also let me know the version of the SDK you're using, that'd be super helpful.
Thanks!
Tipene
0
fares elsokary
Hay Tipene Hughes,
Thanks alot for you reply,
SDK version ZendeskSDKMessaging (2.15.0)
SDK does not provide any logs about this error, but you can try sending the image from the camera, not from the gallery; it will get stuck loading, and at the end it will fail.
And this is the request, which the SDK sends when attempting to send images.
URL https://api.smooch.io/sdk/v2/apps/621b7f521fd7ae00ed3a4be6/conversations/6372d44ad3fcf0ed8515be4a/files
Method POST
Response Code -
Request Start Time Dec 14 2023 - 10:27:49
Duration -*** Request Header ***
x-smooch-clientid clientid
Accept application/json
x-smooch-push disabled
Content-Type multipart/form-data; boundary=Boundary+0F4EB72D3A54A59E
x-smooch-appid appid
Authorization Bearer token
x-smooch-sdk ios/conversation-kit/3.0.0
x-smooch-appname appName
Content-Length 16631823
User-Agent Qawafel/1 (iPhone; iOS 16.7; Scale/3.0)*** Request Body ***
-*** Response Header ***
-*** Response Body ***
-------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
0
Tipene Hughes
Thanks,
Tipene
0
Antonín Šimek
Tipene Hughes Hello, are there any updates? We're experiencing the same issue described in the first message.
0
Tipene Hughes
I’m going to pull this in to a private ticket so I can get some more details from you. You should see an email coming through from me shortly.
Thanks,
Tipene
0