-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateAssembly fields
not utilized in assembly variables unless attached to params.
#29
Comments
Hey christian, It does not matter whether the fields are sent as form-urlencoded fields or as part of the parameters - both ways work. I will update the documentation to make things clearer. Will also check why providing them as opts.fields does not work. |
I have created a template containing this:
And then I have set up two test scripts, one where the fields are part of the params, and one where they are both on the same level: https://gist.github.com/tim-kos/f23dd0541e7ffeb80f82c021d9838c30 Both times things have worked fine. :/ Do you have a code example where it did not work for you so that I can reproduce it? |
Please see the assemblies I sent via transloadit support chat. Note that today, the same code seems to work, so it may be an intermittent issue or an issue with one of the instances, or fixed with an internal release. |
Alright, will check them out. Will close this for the time being. |
According to your documentation,
createAssembly
takes two parameters:params
andfields
.These
fields
are sent asmultipart/form-data
chunks, not as part ofparams.fields
. Note that the REST API documentation does not specify either that it should be sent as part ofparams.fields
, yet I only seem to be able to utilize the assembly variables${fields.my_field_name}
properties within my templates when I send them asparams.fields
.This is quite confusing, and should be addressed both in the API and SDK documentation.
The text was updated successfully, but these errors were encountered: