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

Closed
2 tasks done
williamscs opened this issue May 10, 2024 · 2 comments
Closed
2 tasks done

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

williamscs opened this issue May 10, 2024 · 2 comments
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

@sanjai0py sanjai0py removed their assignment Jun 6, 2024
@lohxt1
Copy link
Collaborator

lohxt1 commented Jun 14, 2024

Duplicate of #352

@lohxt1 lohxt1 marked this as a duplicate of #352 Jun 14, 2024
@lohxt1 lohxt1 closed this as completed Jun 14, 2024
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

4 participants