# Selecting the right template given a file type at run time

**URL:** <https://community.transloadit.com/t/selecting-the-right-template-given-a-file-type-at-run-time/15139>\
**Category:** Transloadit\
**Created:** [November 27, 2019, 1:57am UTC](https://community.transloadit.com/t/selecting-the-right-template-given-a-file-type-at-run-time/15139 "2019-11-27T01:57:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryantomaselli](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ryantomaselli/32/165_2.png) [@ryantomaselli](https://community.transloadit.com/u/ryantomaselli)\
**Post date:** [November 27, 2019, 1:57am UTC](https://community.transloadit.com/t/selecting-the-right-template-given-a-file-type-at-run-time/15139/1 "2019-11-27T01:57:53Z")

</div>

Hey guys;

I’m currently using the Transloadit plugin for uppy, and using the getAssemblyOptions function I’m able to specify the assembly instructions in code that should be used to process the file based on file type.

But, according to reading so far, using a saved template is the more secure way to do things.

My question is: will I continue to select the appropriate template (based on file type) in the client code. Just confirming that there is no way to handle the template selection on the server side.

Thanks for any enlightenment

---

<div class="post-metadata">

**Author:** ![ajkachnic](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ajkachnic/32/260_2.png) [@ajkachnic](https://community.transloadit.com/u/ajkachnic)\
**Post date:** [July 13, 2020, 6:28pm UTC](https://community.transloadit.com/t/selecting-the-right-template-given-a-file-type-at-run-time/15139/2 "2020-07-13T18:28:18Z")

</div>

Hello there. If this is still an issue for you or anyone else, I should be able to help

To my knowledge, there is no way to select your template from server-side. I think setting your template from `getAssemblyOptions` is your best option at the moment

Hope this helps  
- Andrew
