Hi, I have a problem when trying to download a file but then the file size is zero kilobytes. I’ve checked the original file from my local phone the size it’s not zero, but when I upload it and download it on another device it’s zero.
Hi @wildhansatriady. Thank you for contacting us. I took a look at file message sending logics and I found out that
- if you send a file message with url, the filesize can be 0.
- if you send a file message with File instance, the filesize can be 0 when the file does not exist or the operating system denied access.
Did you try explicitly setting filesize like below? (you can get file size by
FileMessageParams params = new FileMessageParams() .setFile(FILE) .setFileSize(FILE_SIZE);
if you share your code here it would be really helpful for me to find out what is going on.
Thank you for contacting us and please let me know if your problem is not solved!