Added getDisplayHtml function and set value if already set to "file" type