Thanks,

I experimented a bit further and this does work for "regular" files but it doesn't work with the public link of a file on Dropbox. In that case, the header( QNetworkRequest::ContentLengthHeader) returns an empty QVariant.

Any further suggestions?