# Search in Attachments

```
General Options ->Attachments
```

This section details only the **basic search** in attachment titles, content field, captions and terms, **not** file contents.

If you need to search **file contents** as well, please check the [Search in attachment contents](/general-settings/search-in-attachment-contents-pdf-word-excel-etc...md) documentation.

## Enabling Attachment Search

To enable the attachment search, simply go to the `General Options -> Attachments` panel and click turn on the `Return attachments as results?` option:

![](http://i.imgur.com/bliARL8.png)

By default, the plugin will look in attachment **Titles**, **Content** and **Caption**s fields, you can adjust these options on the same page:

![](http://i.imgur.com/uyulixu.png)

## Mime Types (file types)

By default .jpeg, .png, .tiff and .ico files are set to return as results, but you can add any mime (file) type of your choice. To get your desired mime type, please check the [WordPress allowed mime types table](https://codex.wordpress.org/Function_Reference/get_allowed_mime_types) table or the table in chapter below.

To allow more mime types, simply enter them to the `Allowed mime types` textarea option **separated by commas**:

![](http://i.imgur.com/f1yUA1M.png)

### Allowed mime types table

[Here is a local, formatted copy](/general-settings/search-in-attachments.md#allowed-mime-types-table) of the allowed mime types table.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ajaxsearchpro.com/general-settings/search-in-attachments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
