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

Multi-part form doesn't support variable values #2280

Open
2 tasks done
williamscs opened this issue May 10, 2024 · 1 comment
Open
2 tasks done

Multi-part form doesn't support variable values #2280

williamscs opened this issue May 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@williamscs
Copy link

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

It looks like URL-encoded forms and JSON bodies support sending the value of a variable. When I use multi-part, however, it looks like it just sends the string literally (e.g. "{{variable}}" instead of rendering as "should_have_value")

.bru file to reproduce the bug

meta {
  name: Test Variable
  type: http
  seq: 3
}

post {
  url: https://echo.free.beeceptor.com/
  body: multipartForm
  auth: none
}

body:json {
  {
    "value": "{{variable}}"
  }
}

body:form-urlencoded {
  variable: {{variable}}
}

body:multipart-form {
  variable: {{variable}}
}
vars {
  variable: should_have_value
}

Screenshots/Live demo link

image
@williamscs williamscs added the bug Something isn't working label May 10, 2024
@sanjai0py sanjai0py self-assigned this May 10, 2024
@Its-treason
Copy link
Member

Its-treason commented May 10, 2024

Duplicate of #352 I already opened a PR for this #1217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants