Skip to content

Importing cURL with form-data payload drops file params and values containing @ #9275

Description

@wahyuakbarwibowo

Internal - [BRU-4568]

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • Slowing me down but I'm able to continue working.

Bruno version

2.0.0

💻 Operating System

macOS

Specific OS Version / Distro

macOS 26.6.2

🐞 Describe the bug

Importing a cURL command with a form-data payload does not carry the form params over into the request body.

Postman generates form-data cURL commands with every --form value quoted, e.g. name="John" and file=@"/path/to/file.txt". After importing such a command in Bruno:

  • file params are lost (they are saved as an empty @file())
  • text params whose value contains an @ (e.g. an email address) are treated as file params and lost as well

The expected result is a Multipart Form body listing every text param with its value and every file param with its path.

📝 Steps to reproduce

  1. In Postman, create a request with a form-data body containing a text field, a text field with an email value, and a file field, then copy it as cURL:
curl --location 'https://example.com/upload' \
--form 'name="John"' \
--form 'email="john@example.com"' \
--form 'file=@"/path/to/file.txt"'
  1. In Bruno, create a new request → From cURL, paste the command and create it.
  2. Open the Body tab of the new request.
  3. The email and file params are missing their values / file path.

📁 Collection to reproduce

N/A, the cURL command above is enough to reproduce.

📷 Screenshots/Live demo link

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions