# Filter uploads by path

[date: 2025-11-17T18:47:31.345+01:00]

We've added a new **path filter** for uploads in the GraphQL API (CDA), allowing you to filter uploads based on their storage path.

The filter supports exact matching (`eq`), negation (`neq`), inclusion (`in`), and exclusion (`notIn`) operations. All path comparisons are case-insensitive.

```graphql
{
  # Find a specific asset by path
  upload(filter: { path: { eq: "/123/1763384420-hero-image.jpg" } }) {
    id
    url
  }

  # Find multiple assets by paths
  allUploads(filter: { path: { in: ["/123/1763382120-logo.png", "/123/1763381111-banner.jpg"] } }) {
    id
    url
  }

  # Exclude specific paths
  allUploads(filter: { path: { notIn: ["/123/1763383331-preview.jpg"] } }) {
    id
    url
  }
}
```

You can also use this new filter when [fetching uploads](https://www.datocms.com/docs/content-management-api/resources/upload/instances.md) via the CMA or in your project Media Area

(Image content)