Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: AI Search supports extensionless R2 objects with Content-Type metadata
description: Index extensionless R2 objects by setting supported Content-Type metadata.
products:
- ai-search
date: 2026-09-11
publish_future_dated_entry: true
---

AI Search can index R2 objects without filename extensions when they include supported `Content-Type` metadata. This supports object keys that do not include file extensions while preserving file-type validation during indexing.

For supported file types and Content-Type requirements, refer to [R2 data sources](/ai-search/configuration/data-source/r2/).
6 changes: 6 additions & 0 deletions src/content/docs/ai-search/configuration/data-source/r2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ If you have never created an R2-backed instance before, we recommend using the d

To get started, [configure an R2 bucket](/r2/get-started/) containing your data. Files that are unsupported or exceed the size limit will be skipped during indexing and logged as errors.

## Set Content-Type metadata

AI Search uses recognized filename extensions as its preferred, faster file-type detection path. For R2 objects without a filename extension, set explicit `Content-Type` metadata to a supported MIME type.

Objects with a missing, unsupported, malformed, or `application/octet-stream` `Content-Type` are not supported. For supported file types and MIME types, refer to [Data source](/ai-search/configuration/data-source/#supported-file-types).

## Path filtering

You can control which files get indexed by defining include and exclude rules for object paths. Use this to limit indexing to specific folders or to exclude files you do not want searchable.
Expand Down