Image from camera failed to upload | Community
Skip to main content

Image from camera failed to upload

  • December 12, 2023
  • 5 replies
  • 0 views

fares12

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.

5 replies

Tipene
  • December 13, 2023

Hey @fares12,

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


fares12
  • Author
  • December 14, 2023

Hay @tipene,
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 ***
-------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------


Tipene
  • January 9, 2024
So sorry for the delay in getting back to you on this! I'm going to do some testing based on what you've provided and will get back to you with an update ASAP.
 
Thanks,
 
Tipene

Antonín
  • December 3, 2024

@tipene Hello, are there any updates? We're experiencing the same issue described in the first message.


Tipene
  • December 19, 2024
Hi Antonín,
 
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