add type in attachment,pdf only be read online