Creating lists to detect file attachment types