Preview files in forms? Even possible?

Is it possible to create a form or add file path node with preview to show the family files the user selects just like the preview we have while importing a family…?