My application downloads files that are hosted on mediafire. For most of my users it works. But for a handful, the inputStream is returning with a getTotalLenth of 0. If I give them the links directly to download in their browser, it works fine.
What are some possible reasons the length would be 0? For example, is there header info I should be adding to ensure correct downloading? I’m currently creating the input stream with
url.createInputStream (false, nullptr, nullptr, String::empty, 10000);