# keep file name of attachment via API

**URL:** <https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467>\
**Category:** Airtable Questions\
**Created:** [March 28, 2023, 10:39am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467 "2023-03-28T10:39:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 28, 2023, 10:39am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/1 "2023-03-28T10:39:29Z")

</div>

I use [Make.com](http://Make.com) and the cloudinary module. And the file name is changed when I upload it to cloudinary. is there a way for me to keep the original name?  
I found Scott’s post: [Automate changing the file name of an attachment - Airtable Community](https://community.airtable.com/t5/other-questions/automate-changing-the-file-name-of-an-attachment/td-p/81593)  
But I don’t know the details of setting his modules

---

<div class="post-metadata">

**Author:** ![ScottWorld](https://yyz1.discourse-cdn.com/flex029/user_avatar/air.tableforums.com/scottworld/32/5_2.png) [@ScottWorld](https://air.tableforums.com/u/ScottWorld)\
**Post date:** [March 28, 2023, 11:48am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/2 "2023-03-28T11:48:42Z")

</div>

Welcome to the community, @nguyennhattao!

Can you post screenshots of your Make scenario, so we can see what you’re trying to do? It sounds like you’re taking an attachment from Airtable, running it through Cloudinary, and then re-uploading it to Airtable again?

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 28, 2023, 1:25pm UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/3 "2023-03-28T13:25:45Z")

</div>

here is my scenario. the result i get is a url image with watermark but the name is random

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/tableforums/original/1X/ff2874947c2d23eabe042a7cb3d1969fd2a6f7bb.png)

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 28, 2023, 5:56pm UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/4 "2023-03-28T17:56:19Z")

</div>

Thank you. i solved the problem

---

<div class="post-metadata">

**Author:** ![ScottWorld](https://yyz1.discourse-cdn.com/flex029/user_avatar/air.tableforums.com/scottworld/32/5_2.png) [@ScottWorld](https://air.tableforums.com/u/ScottWorld)\
**Post date:** [March 28, 2023, 6:13pm UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/5 "2023-03-28T18:13:25Z")

</div>

That’s great! How did you solve it?

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 28, 2023, 6:35pm UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/6 "2023-03-28T18:35:10Z")

</div>

@ScottWorld  
I didn’t know the field attachment had a box file name before. I didn’t know this basic thing. but now new problem comes to me. when i download the file. then its extension changed from .jpg to .jpg\_. although the file name displayed in the airtable does not have the “\_” character

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/tableforums/original/1X/73a7193c694bfcd03829446db0a586841f745cad.png)

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 28, 2023, 6:45pm UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/7 "2023-03-28T18:45:48Z")

</div>

![dhjnxd](https://canada1.discourse-cdn.com/flex029/uploads/tableforums/original/1X/04c5dd9d12696414f425186448a521cf6b0f1b06.jpeg)

---

<div class="post-metadata">

**Author:** ![ScottWorld](https://yyz1.discourse-cdn.com/flex029/user_avatar/air.tableforums.com/scottworld/32/5_2.png) [@ScottWorld](https://air.tableforums.com/u/ScottWorld)\
**Post date:** [March 29, 2023, 1:19am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/8 "2023-03-29T01:19:59Z")

</div>

What is Cloudinary’s output returning to you in module #43 for the URL? Is it returning the URL to you with the extra underscore character at the end of it?

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 29, 2023, 3:52am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/9 "2023-03-29T03:52:15Z")

</div>

> [@ScottWorld](#):
>
> extra underscore character

cloudinary returns the URL without the underscore character

---

<div class="post-metadata">

**Author:** ![nguyennhattao](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nguyennhattao](https://air.tableforums.com/u/nguyennhattao)\
**Post date:** [March 29, 2023, 4:02am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/10 "2023-03-29T04:02:51Z")

</div>

I fixed the problem again. thank you 😄

---

<div class="post-metadata">

**Author:** ![ScottWorld](https://yyz1.discourse-cdn.com/flex029/user_avatar/air.tableforums.com/scottworld/32/5_2.png) [@ScottWorld](https://air.tableforums.com/u/ScottWorld)\
**Post date:** [March 29, 2023, 4:03am UTC](https://air.tableforums.com/t/keep-file-name-of-attachment-via-api/467/11 "2023-03-29T04:03:58Z")

</div>

You probably typed an extra space after the filename.
