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);
Vous devez vous connecter pour laisser un commentaire.