Using custom fields in php sdk

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

I’'m trying to pass custom fields via the php sdk, but it’s not working

<?php $response = $transloadit->createAssembly(array( 'fields' => array( 'user_id' => 12345 ), 'params' => array( 'template_id' => "REDACTED", 'steps' => array( 'import' => array( 'robot' => '/http/import', 'url' => $file ) ) ) ));

Hey Ludo,

I just double-checked the code and it should work fine. What exactly is not working? Do you get any error message?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hey there,

I am going to close this ticket for now since it is old. Please feel free to re-open it in case you need more help here.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos