don't show external edit action if extension is pdf or jpg