How to set up to allow previewing files but prohibit downloading

Want to achieve online preview without download for controlled files. The following steps did not yield the expected results - please advise. Thanks!

1.The system administrator set share permission controls.

2.Granted view permissions to User B.

or

3.User B can see the file name, but clicking prompts: “This file cannot be displayed as download is disabled by the share.”

click [View]: