Upload events

4 Comentarios

  • Mathew Cropper
    Acciones de comentarios Permalink

    Hey Babaka. Sorry you haven't had a reply. The SDK Product and Engineering teams keep an eye on the Mobile SDKs community for questions like this, so looks like this fell through the cracks.

    Leave it with me. I'll ask someone to take a look and respond to this thread.

    0
  • Brendan Fahy
    Acciones de comentarios Permalink

    Hi Babaka,

    Can you give us some more detail on this so we can understand the issue better? You're using the Chat API and have built your own UI on top of it, is that correct? If so, we'll probably need to see your code to figure out what's going wrong. Will you be able to reproduce this problem in a minimal sample app and share it with us?

    Regards,

    Brendan

    0
  • babaka
    Acciones de comentarios Permalink

    Hi Brendan,

    I am using just Chat API with my own UI, it looks fine, when I am attaching just 1 file. And I have problem with attaching 2 files in one time. I got message events only for last one. I will try to reproduce it with you ZDCChatAPI Sample App -

    just need to tiny change pickImage method. It is allow multiply selection -

      @IBAction func pickImage(_ sender: AnyObject) {
        let pickerController = DKImagePickerController()
        pickerController.singleSelect = false
        pickerController.didSelectAssets = { (assets: [DKAsset]) in
          assets.forEach {
            $0.fetchOriginalImage(false) { (image, info) in
              self.delegate.chatController(self, didSelectImage: image!)
            }
          }
        }
        self.present(pickerController, animated: true) {}
      }

    So this is debug output:

    2017-08-14 12:01:31.924 ZDCChatAPI Sample App[13703:1325906] [DEBUG]: Requesting attachment upload URL

    2017-08-14 12:01:31.929 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492105") of type 7 with: nil

    2017-08-14 12:01:31.945 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492105") of type 7 with: nil

    2017-08-14 12:01:31.965 ZDCChatAPI Sample App[13703:1323209] [DEBUG]: Requesting attachment upload URL

    2017-08-14 12:01:31.987 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492163") of type 7 with: nil

    2017-08-14 12:01:32.003 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492163") of type 7 with: nil

    2017-08-14 12:01:32.629 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492163") of type 7 with: nil

    2017-08-14 12:01:33.002 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492164") of type 7 with: nil

    2017-08-14 12:01:34.378 ZDCChatAPI Sample App[13703:1325906] [DEBUG]: File upload completed

    2017-08-14 12:01:35.830 ZDCChatAPI Sample App[13703:1323209] [DEBUG]: File upload completed

    2017-08-14 12:01:36.380 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492164") of type 7 with: nil

    2017-08-14 12:01:36.545 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492164") of type 7 with: nil

    2017-08-14 12:01:37.908 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492164") of type 7 with: Optional("Visitor uploaded: attachment-2_1502726491.jpg\nURL: https://v2uploads.zopim.io/S/o/C/SoCFGHHEAkJMMqjpwJTNSDaoaKzz3cEO/87dbf05a07001491bbe2e1ee6f4ccf5fd9ad171b.jpg\nType: image/jpeg\nSize: 1370750\nThumb: https://v2uploads.zopim.io/S/o/C/SoCFGHHEAkJMMqjpwJTNSDaoaKzz3cEO/87dbf05a07001491bbe2e1ee6f4ccf5fd9ad171b.jpg.thumb.jpg")

    2017-08-14 12:01:38.066 ZDCChatAPI Sample App[13703:1322346] Received chat event Optional("1502726492164") of type 7 with: Optional("Visitor uploaded: attachment-2_1502726491.jpg\nURL: https://v2uploads.zopim.io/S/o/C/SoCFGHHEAkJMMqjpwJTNSDaoaKzz3cEO/87dbf05a07001491bbe2e1ee6f4ccf5fd9ad171b.jpg\nType: image/jpeg\nSize: 1370750\nThumb: https://v2uploads.zopim.io/S/o/C/SoCFGHHEAkJMMqjpwJTNSDaoaKzz3cEO/87dbf05a07001491bbe2e1ee6f4ccf5fd9ad171b.jpg.thumb.jpg")

     

    You can find - there are no events for 1502726492105 (1502726492106) like we have for 1502726492163 (1502726492164) . And this event does not have complete status =(

     

    0
  • Barry Carroll
    Acciones de comentarios Permalink

    Hi Babaka,

    Thanks for the snippets. I have reproduced this on iOS, and I would recommend that you use single image upload for the moment. We may revisit the API and enable multiple image uploading, but it is not a use-case we are supporting right now.

    Thanks,

    Barry.

    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk