# How can I customize fileID

**URL:** <https://community.transloadit.com/t/how-can-i-customize-fileid/17119>\
**Category:** Uppy\
**Created:** [May 31, 2024, 6:00am UTC](https://community.transloadit.com/t/how-can-i-customize-fileid/17119 "2024-05-31T06:00:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swing](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@swing](https://community.transloadit.com/u/swing)\
**Post date:** [May 31, 2024, 6:00am UTC](https://community.transloadit.com/t/how-can-i-customize-fileid/17119/1 "2024-05-31T06:00:03Z")

</div>

Hi,  
I wish to customize the addition of the file ID, yet I have not discovered any related information in the documentation or source code. Are there any extension methods available?

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [May 31, 2024, 6:16am UTC](https://community.transloadit.com/t/how-can-i-customize-fileid/17119/2 "2024-05-31T06:16:33Z")

</div>

Some implementations, like tusd and tus-node-server, provide features or configuration options to customize the upload ID on a per-upload basis. However, since this is an implementation detail there is no extension in the protocol for this.

For tusd, have a look at the document at [Customization via hooks | tusd documentation](https://tus.github.io/tusd/advanced-topics/hooks/#hook-requests-and-responses) and for tus-node-server the `namingFunction` option would be relevant: [tus-node-server/packages/server at main · tus/tus-node-server · GitHub](https://github.com/tus/tus-node-server/tree/main/packages/server#optionsnamingfunction)

---

<div class="post-metadata">

**Author:** ![swing](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@swing](https://community.transloadit.com/u/swing)\
**Post date:** [May 31, 2024, 6:31am UTC](https://community.transloadit.com/t/how-can-i-customize-fileid/17119/3 "2024-05-31T06:31:37Z")

</div>

Perhaps I didn’t make it clear, the file ID I mentioned was handled by Uppy and serves as a key stored in the localSrorage.I want to use the MD5 of the file as the file ID instead of the file name, file size and file modification time.

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [May 31, 2024, 6:45am UTC](https://community.transloadit.com/t/how-can-i-customize-fileid/17119/4 "2024-05-31T06:45:33Z")

</div>

That wasn’t clear from your first comment, thanks for clearing up. File ID is a very overloaded term, so without further distinction, it is hard to know what is meant exactly.

You can have a look at the fingerprint option for tus-js-client: [tus-js-client/docs/api.md at main · tus/tus-js-client · GitHub](https://github.com/tus/tus-js-client/blob/main/docs/api.md#fingerprint), which is responsible for generating the value that you seem to be referring to. However, Uppy has its own fingerprint handling, so I am unsure whether you can overwrite Uppy’s fingerprint method:

> <https://github.com/transloadit/uppy/blob/54700c91eb162a6a80afc5dd161a41f76c07ad50/packages/%40uppy/tus/src/index.ts#L245-L249>

Someone else might be better equipped to answer that.
