Hello All,
 
I created a custom Entity(Test Scenario). In that I created a Field(Attach File) which is option set.
 
On selection of optionset 
 
A dialogbox has to open to attach File