Zendesk Chat - Android attach file issue
To attach file to chat we have method - chatProvider().sendFile(File file, FileUploadListener fileUploadListener);
The problem is that starting from android 11 we cannot get real file path and create a File class instance. We have an Uri for the file and can open InputStream to get data, but cannot get a File for it. We can create a new file in app specific folder and copy data into it, but it's a bit silly. Is there any workaround or working approach for it? How can I attach file from non app-specific folder to chat(i.e. download folder). Maybe it's worth to consider adding chatProvider().sendFile(fileName:String, fileData:byte[], FileUploadListener fileUploadListener);
This topic has been closed for replies.
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.