# ${unique\_prefix} contains "/" in s3-url

**URL:** <https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [February 8, 2012, 8:47am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068 "2012-02-08T08:47:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtl](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rtl](https://community.transloadit.com/u/rtl)\
**Post date:** [February 8, 2012, 8:47am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/1 "2012-02-08T08:47:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on February 8, 2012; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20141222191846/http://support.transloadit.com/discussions/problems/441-unique_prefix-contains-in-s3-url)

My path is set to something like “/photo/${unique\_prefix}/${previous\_step.name}”. When upload to s3 the url for one result is for example “/photo/74/eaa5556250f3deb2bbb9c8eda8841e/:original”. But the id is “REDACTED”. There is a “/” inserted on char(3) inside ${unique\_prefix}.

Is this a bug or a feature?

See “assembly\_id”: “REDACTED”.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 8, 2012, 10:29am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/2 "2012-02-08T10:29:00Z")

</div>

Hey rtl,

Many people do not properly create subfolders by default which leads to all files being added to the same folder. By using the first two chars of the file id to artificially create another subdirectory this problem is easily prevented.

This is not a bug, this is a feature. 🙂

---

<div class="post-metadata">

**Author:** ![rtl](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rtl](https://community.transloadit.com/u/rtl)\
**Post date:** [February 20, 2012, 7:52am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/3 "2012-02-20T07:52:00Z")

</div>

For me this is kind of annoying. I have to move all uploaded files to the “proper path”. Is there an option to deactivate this behavior?

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 20, 2012, 9:08am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/4 "2012-02-20T09:08:00Z")

</div>

Hey rtl,

well, you don’t have to use the ${unique\_prefix} variable. 🙂 It is set to work this way with the slash in between, so adding a parameter to just control how unique\_prefix works would be overkill.

However, if you just need a unique prefix for your upload, you could also use ${assembly.id}. Or there would be other meta information pieces that could qualify for this.  
If this doesn’t help for your use case, you could also pass a unique prefix yourself to in the “path” string in your “params” field.

Please let me know why you need the unique prefix, then I can probably make better suggestions for your use case.

Kind regards  
Tim

---

<div class="post-metadata">

**Author:** ![rtl](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rtl](https://community.transloadit.com/u/rtl)\
**Post date:** [February 20, 2012, 9:39am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/5 "2012-02-20T09:39:00Z")

</div>

> However, if you just need a unique prefix for your upload, you could also use ${assembly.id}.

I guess ${assembly.id} is the same for all processed files (in that assembly), right?

I would like to use a unique prefix (without slashes) file by file. Therefore using the ${assembly.id} or changing the “path”-paramenter won’t help because this affects all files in that upload. I really would like to use the “id” of the generated file. So it is ${unique\_prefix} but without the added slash ☹

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [February 20, 2012, 9:49am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/6 "2012-02-20T09:49:00Z")

</div>

Hey,

you could try ${file.id} 🙂

---

<div class="post-metadata">

**Author:** ![rtl](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@rtl](https://community.transloadit.com/u/rtl)\
**Post date:** [February 21, 2012, 10:11am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/7 "2012-02-21T10:11:00Z")

</div>

Eh… thank you, that’s it.  
(I feel a little embarrassed now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 9:59am UTC](https://community.transloadit.com/t/unique-prefix-contains-in-s3-url/18068/8 "2026-10-07T09:59:03Z")

</div>

Closed on October 7, 2026, 9:59am UTC


