# Set filename on upload or download

**URL:** <https://forum.bubble.io/t/set-filename-on-upload-or-download/157110>\
**Category:** Database\
**Created:** [June 24, 2021, 12:38am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110 "2021-06-24T00:38:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 24, 2021, 12:38am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/1 "2021-06-24T00:38:23Z")

</div>

Hi all,

Im trying to figure out how to force a filename change using the standard upload or download functions to //s3. It doesn’t matter when the change happens, as long as the filename is set to the correct name when downloaded by the client.

So somebody uploads a file with a random name, say: WZXY.txt, and when someone downloads that file the name will be corrected to, say: ##-XYZ.txt

Many thanks!

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [June 24, 2021, 1:24am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/2 "2021-06-24T01:24:12Z")

</div>

What’s your workflow to download the file? I’m fairly sure you can dynamically set it there depending on what file download plugin you are using.

---

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 24, 2021, 2:21am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/3 "2021-06-24T02:21:31Z")

</div>

Thanks for the reply,

Its pretty straight forward, there’s an upload button, which disappears after user ‘A’ uploads the file, a link takes its place so user ‘B’ knows its available and downloadable as needed. The file is associated with a specific record in a table.

When retrieved, the files name needs to have a certain naming convention, which is a concatenation of several columns in a table.

I’m aware that I could just reject the file if the name is not correct by deleting after upload, but I don’t want to go down that road as I have reluctant users. I need it to be pain-free so they can upload the file with any name knowing that it will download with the correct name.

Hope that explanation is coherent…

 ![help](https://us1.discourse-cdn.com/bubble/original/3X/6/4/64db207b00e6560129d58ef99e7b6902ec3a14d4.png)

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [June 24, 2021, 4:47am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/4 "2021-06-24T04:47:20Z")

</div>

Sounds pretty straightforward 🙂

I more meant screenshots of your actual workflows set up in bubble 😉

How are you uploading the file? Through bubble’s file uploader element? I’d set the file name after upload by using the ‘a Uploader File is uploaded’ action

---

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 24, 2021, 6:52am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/5 "2021-06-24T06:52:47Z")

</div>

Hey,

I don’t seem to have that action available to me ☹

 ![help2](https://us1.discourse-cdn.com/bubble/original/3X/c/3/c36cc5576f4c9822b13182678e4afc706079cdee.png)

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [June 24, 2021, 7:46am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/6 "2021-06-24T07:46:29Z")

</div>

So it appears you are using EzCode’s plugin not the bubble file uploader.

I’m not familiar with the plugin but check out the plugin page is here [Base64 File Uploader & Downloader Plugin | Bubble](https://bubble.io/plugin/ez-file-uploader-1563788967815x673444000197247000)

And it looks like you can set the file name dynamically on upload

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

---

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 25, 2021, 12:35am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/7 "2021-06-25T00:35:21Z")

</div>

Hey thanks, yeah I’m not actually using the EZ uploader, its just in the list as I was trying other ways and it didn’t seem to work as I wanted, but ill give it another go.

---

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 25, 2021, 2:42am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/8 "2021-06-25T02:42:56Z")

</div>

The so called EZ uploader makes no sense to me. Where/when is the actual prompt to select a local file? The ‘contents’ field as you have it is just referencing a multiline field. Im trying to upload specific file types such as PDFs etc.

---

<div class="post-metadata">

**Author:** ![CluckyBlokebird](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@CluckyBlokebird](https://forum.bubble.io/u/CluckyBlokebird)\
**Post date:** [June 25, 2021, 3:44am UTC](https://forum.bubble.io/t/set-filename-on-upload-or-download/157110/9 "2021-06-25T03:44:20Z")

</div>

Yay. Found what I needed:

[Download a file ! by redype](https://bubble.io/plugin/download-a-file--1610653619145x592099128718131200)
