We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to upload the base64 of a file in one of the parameter of the body
# Upload picture POST {{PUBLIC_URL}}/public-picture-api/my-pictures Authorization: Bearer {{id_token}} { "file": "//TODO", "fileType": "JPEG", "title": "{{title}}", "tags": ["{{tag}}"] }
At the moment, i must put the whole JSON body in a file ...
The text was updated successfully, but these errors were encountered:
Hi @glb-cblin
Currently, there is no way to inject data in a Hurl file appart from variable.
Like with filter, we're going to introduced generators that will allow this usecase:
# Upload picture POST {{PUBLIC_URL}}/public-picture-api/my-pictures Authorization: Bearer {{id_token}} { "file": {{ file "/tmp/foo.bin" base64Encode }}, "fileType": "JPEG", "title": "{{title}}", "tags": ["{{tag}}"] }
(The syntax is still to be defined). In this file file "foo.bin" is a generatord, followed by a filter base64dec
file "foo.bin"
base64dec
See also #2145
Sorry, something went wrong.
Hi @jcamiel
I've seen #2145 but I thought it was just for Asserts and Captures
Glad to know it will also be usable in bodies !
No branches or pull requests
Problem to solve
I'd like to upload the base64 of a file in one of the parameter of the body
At the moment, i must put the whole JSON body in a file ...
The text was updated successfully, but these errors were encountered: