file preview directive