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

File gets lost when importing request from cURL #13321

Open
1 task done
kgalushchak opened this issue Dec 9, 2024 · 0 comments
Open
1 task done

File gets lost when importing request from cURL #13321

kgalushchak opened this issue Dec 9, 2024 · 0 comments

Comments

@kgalushchak
Copy link

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

I am trying to import the request from cURL to Postman (have copied it as cURL from Chrome DevTools). My request has content-type: multipart/form-data where a file is submitted as octet-stream.
I see the cURL is parsed successfully and a file is present in the body of the request.
Screenshot 2024-12-09 at 17 04 15

Though, when trying to send it, I see an error in the console:
Form param `mask`, file load error: "file.png", no such file

The issue is very similar to #8506, though, several years have passed since then and it appears there is no option to select content type for individual form data anymore, I can only specify if this is file or text, and octet stream seems to be handled wrongly.

Steps To Reproduce

  1. Get a cURL where the file is being sent as octet-stream inside multiform-data;
  2. Pocy the cURL;
  3. Open Postman;
  4. Click "Import" and paste copied cURL;
  5. Select "Import into collecton";
  6. Try to run the request and observe the issue;
  7. Check Postman console to see the error.

Screenshots or Videos

No response

Operating System

macOS

Postman Version

11.22.0

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant