Option to view preview

In the form, Is there any options to view the preview of the attached files?

You want like this, then you have to customize the code.