I’m using sendbird flutter package (sendbird_sdk | Flutter Package) and It’s giving me a hard time to determine if Im going to display an image or a file from FileMessage. any suggestions or logic for this one? Thank you
@Arone_Jerome Try using the ‘type’ key which is coming in BaseMessage object to check the extension of file. May be it will help in solving your issue.
@Arone_Jerome Have you tried sending pdf or doc file using flutter chat sdk? I am able to send the images but not able to send pdf or doc files. If you have worked on this kindly help me out.
Yeah, I did use already the type parameter. and validating if its an image or not. It’s working But suddenly I did also try to send file with .json extension. but the type paremeter is empty.
@Arone_Jerome Can you confirm are you able to send pdf , doc or xls file from flutter chat sdk as I am getting issue in sending these type of files
You can add customType on messages to detemine if the FileMessage is a file or not.