Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.32k stars 445 forks source link

file upload not work #1235

Open nstp opened 11 months ago

nstp commented 11 months ago

Steps to Reproduce:

  1. Create Request:
    
    POST http://{{url}}
    Content-Type: multipart/form-data; boundary=TestBoundary

--TestBoundary Content-Disposition: form-data; name="test.trace"; filename="test.trace" Content-Type: application/octet-stream < ../trace/test.trace --TestBoundary--



2. Send Request:
    vscode pop out an error info "Cannot read properties of undefined (reading 'flowing')"
![image](https://github.com/Huachao/vscode-restclient/assets/29659537/ef9d5d6e-36ac-46bc-ab9d-7aa5e2c4dddd)
tertek commented 5 months ago

@Huachao I can confirm that file upload seem not to work with some file types.

I have tested your examples from the documentation with a .xml and .png.

In case of xml it works fine.

In case of .png the file is not being attached. I have tested the very same http request with Postman, which works on my locally hosted API.

Also tried relative/absolute paths without effect.