# Uploading images validation

**URL:** <https://forum.builder.io/t/uploading-images-validation/13457>\
**Category:** General\
**Created:** [March 17, 2025, 8:59pm UTC](https://forum.builder.io/t/uploading-images-validation/13457 "2025-03-17T20:59:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mateuszad](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@mateuszad](https://forum.builder.io/u/mateuszad)\
**Post date:** [March 17, 2025, 8:59pm UTC](https://forum.builder.io/t/uploading-images-validation/13457/1 "2025-03-17T20:59:00Z")

</div>

Hello,

Is there any validation when it comes to uploading images?

For example, when I upload an XXX.png image that already exists in the assets, is there a kind of pop-up that informs me about it?

“Image XXX already exists”

Or is there possibility to create such as validation information?

---

<div class="post-metadata">

**Author:** ![ParthSharma](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@ParthSharma](https://forum.builder.io/u/ParthSharma)\
**Post date:** [March 25, 2025, 5:12am UTC](https://forum.builder.io/t/uploading-images-validation/13457/2 "2025-03-25T05:12:17Z")

</div>

Hi Mateusz,

Currently, [Builder.io](http://Builder.io) does not provide a built-in feature to notify you if an image already exists in your assets when uploading one. However, you can implement some custom logic or processes to handle this kind of validation. You can use graphQL to fetch all images and names, and, before uploading the image, validate the new asset name if it already exists.

To get all assets using admin API:

Endpoint: [https://cdn.builder.io/api/v2/admin](https://cdn.builder.io/api/v2/admin)

```auto
{ "query": "query ($input: QueryAssetsInput!) { assets(input: $input) { name, ownerId, folders, createdDate } }", "variables": { "input": { "query": { "name": { "$regex": "^S", "$options": "i" } }, "sort": { "createdDate": -1 }, "limit": 20 } }} 

```

If you’d like to explore more about how to implement this, the [GraphQL API documentation](https://www.builder.io/c/docs/graphql-api) will be beneficial.

Thanks,
