rest api also has a header with file length (needed for java plugin)