Is it possible to add custom parameters to /s3/store path?

Archived from the Transloadit support forum. Originally posted on January 26, 2011; details may be outdated, see our docs for current behavior. Original thread

I’d like to be able to add custom parameters to the path that is used to store files so i can fit transloadit into my current storage setup which uses the following path setup for S3:

"path" : "{account id}/{portfolio id}/${file.urlName}" Is there any way to make those first two variables available to the store robot either using form parameters or JS?

You can recursively overwrite any aspect of a template with your params JSON. Let me know if that makes sense or if you need further help with it.

I think that does makes sense yeah :slight_smile:

In my case i will probably need something like this is the php version of my params array:

`

$params = array(
    'auth' => array('key' => 'MY_AUTH_KEY'),
    'template_id' => 'MY_TEMPLATE_ID',
    'redirect_url' => 'REDIRECT_URL',
    'steps' => array('store' => array('path'=> $account_id.'/'.$portfolio_id.'/${file.urlName}')
);

`

Yip, that’ exactly how it works!