Fixed issue with file preview using incorrect content length for deciding when to stop streaming. Closes #1904 See merge request !1691