LPS-38017 Set file size threshold for stopping preview and thumbnail generation