Attachments are passed to OpenAI in two different ways. Please refer to the provided links for the currently supported file types:
Images: We pass images to OpenAI as attachments
File Search: We pass File Search supported file types to the assistant.