You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
POST call to upload a file is working in the VS Code extension but not in this one.
Does not appear to be replacing the @values.
Response in Visual Studio Pro 2022 (64-bit) v17.1.5 is:
"An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set."
Expected behavior
The "[FromForm(Name = "file")] IFormFile file" is seen by the endpoint. It is valid when sent from VS Code, but null when sent by this extension.
The text was updated successfully, but these errors were encountered:
I have a similar issue. When posting the exact request in VS Code, it works fine. When using the Rest Client for Visual Studio on the same machine I get a 401 Unauthorized error.
Describe the bug
POST call to upload a file is working in the VS Code extension but not in this one.
Does not appear to be replacing the @values.
Response in Visual Studio Pro 2022 (64-bit) v17.1.5 is:
"An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set."
To Reproduce
@hostname = localhost
@PORT = 44388
@host = {{hostname}}:{{port}}
@baseurl = https://{{host}}
@boundary = ----demoBoundary
@ContentType = multipart/form-data; boundary={{boundary}}
POST {{baseurl}}/sendfile HTTP/1.1
Content-Type: {{contentType}}
--{{boundary}}
Content-Disposition: form-data; name="file"; filename="jellyfish.jpg"
Content-Type: application/octet-stream
< ./files/pexels-cristian-muduc-10027304.jpg
--{{boundary}}--
Expected behavior
The "[FromForm(Name = "file")] IFormFile file" is seen by the endpoint. It is valid when sent from VS Code, but null when sent by this extension.
The text was updated successfully, but these errors were encountered: