Skip to content
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

FormData: Pass raw bytes buffer as file input and allow substitution #66

Closed
zekroTJA opened this issue Aug 27, 2024 · 0 comments · Fixed by #67
Closed

FormData: Pass raw bytes buffer as file input and allow substitution #66

zekroTJA opened this issue Aug 27, 2024 · 0 comments · Fixed by #67
Assignees
Labels
enhancement New feature or request

Comments

@zekroTJA
Copy link
Member

zekroTJA commented Aug 27, 2024

The [FormData] request block currently has tow issues:

1) Substitution

Variable substitution does currently not work in the field values.

Example:

[FormData]
someFile1 = @{{.file1Name}}:image/png
someFile2 = "{{.file2Contents}}"

2) Raw bytes buffer

It should be possible to pass a raw byte buffer as parameter to the value of a FormData entry. Because it must not be treated as a string, it would be required to do some modifications how raw values are parsed. Otherweise, there could be a new identifier for raw inputs like in the following example.

[FormData]
rawData = $rawData
@zekroTJA zekroTJA added the enhancement New feature or request label Aug 27, 2024
@manego manego linked a pull request Sep 6, 2024 that will close this issue
@manego manego closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants