# How change file name when uploading a new file

**URL:** <https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258>\
**Category:** Database\
**Created:** [January 13, 2025, 7:29pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258 "2025-01-13T19:29:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler11](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tyler11](https://forum.bubble.io/u/tyler11)\
**Post date:** [January 13, 2025, 7:29pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/1 "2025-01-13T19:29:49Z")

</div>

Here is an example of what I need.

My clients ask us to mockup a tshirt. We have a dropdown list of different locations their artwork goes on the tshirt (Front, Back, Sleeve, etc…). They can then upload their artwork for us to mock it up. However their file names are always quite crazy, and I want to just change the name to the location. For example the file name would be Front.ai or Front.pdf so it doesn’t change file extension or the file itself, just the name.

Is there a way to do this when creating the new thing?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/d/bde0b8f6e3dbc4bb5f2d439dd5c78b8060b965e1.png)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 13, 2025, 7:47pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/2 "2025-01-13T19:47:52Z")

</div>

Hmm 🤔 Good question. I don’t think there is a way to do that with the native bubble uploader but maybe you can use a different plugin. Maybe try something like this: [File & MultiFile Uploader · BEP Plugin | Bubble](https://bubble.io/plugin/file--multifile-uploader-%C2%B7-bep-1643847782395x597625793912766500) or this: [Better Uploader Plugin | Bubble](https://bubble.io/plugin/better-uploader-1648049058728x629621556620034000)

Or you can check out other upload plugins from the plugins page.

Let us know if one of those works better. 😊

---

<div class="post-metadata">

**Author:** ![mitchbaylis](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mitchbaylis/32/122860_2.png) [@mitchbaylis](https://forum.bubble.io/u/mitchbaylis)\
**Post date:** [January 14, 2025, 1:33am UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/3 "2025-01-14T01:33:51Z")

</div>

normally I save the file name as a separate field in the database

this allows the user to change it to whatever they want  
and allows me to write it on creation as well

I also write the size and file type as these are useful

file type is good for changing whether to show an image or an icon of a video, or knowing when to fetch a thumbnail for a video for instance

---

<div class="post-metadata">

**Author:** ![tyler11](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tyler11](https://forum.bubble.io/u/tyler11)\
**Post date:** [January 14, 2025, 11:54pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/4 "2025-01-14T23:54:15Z")

</div>

Thanks guys. Was trying to do it more systematically but this is a decent workaround. Thank you

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [January 15, 2025, 4:02pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/5 "2025-01-15T16:02:08Z")

</div>

Technically, you can do this by creating your record via an API call to your own app with the API connector.

Make sure you have Data API enabled and the “neworder” data type enabled in API settings… plus privacy rules to protect the data type’s API access!

In the request, you’d send all the information about the file as detailed here: [The Bubble API | Bubble Docs](https://manual.bubble.io/core-resources/api/the-bubble-api#sending-data)

It’s very much a “long way around” to create a record, but it does allow you to name the actual file uploaded.

With that said, @J805 and @mitchbaylis 's suggestions are great solutions too.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [January 15, 2025, 4:14pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/6 "2025-01-15T16:14:54Z")

</div>

This plugin: [File Uploader Bubble API Plugin | Bubble](https://bubble.io/plugin/file-uploader-bubble-api-1628816507621x527883429883936800)  
was created to work with file coming from API Connector that doesn’t have a name. This upload a new version of the file and let you set the file name and privacy settings. You just need to delete the previous version of the file after.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 15, 2025, 4:16pm UTC](https://forum.bubble.io/t/how-change-file-name-when-uploading-a-new-file/355258/7 "2025-01-15T16:16:22Z")

</div>

That is good to know. If they allow it with API access, you would think it would be easy for them to add it to the front end too. Maybe for the next ‘bubble boosts’. 😊 🤷‍♂️
