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

Upload a file with spaces in the path #376

Closed
gitter-me opened this issue Jun 19, 2019 · 2 comments
Closed

Upload a file with spaces in the path #376

gitter-me opened this issue Jun 19, 2019 · 2 comments
Labels

Comments

@gitter-me
Copy link

gitter-me commented Jun 19, 2019

  • VSCode Version: 1.35.1
  • OS Version: Win10 1809
  • REST Client Version: 0.21.3

Steps to Reproduce:

I tried to upload a file with spaces on windows, not getting it to work:

POST http://localhost:1337/api/v1/someendpoint HTTP/1.1
content-type: image/jpeg

< C:\Users\Username\Documents\Path with spaces\Filename with spaces.jpg

I tried putting the path in single and double quotes, tried to use a custom variable, and also tried to replace the spaces in the string with %20

@Huachao
Copy link
Owner

Huachao commented Jun 20, 2019

@gitter-me nice catch, I have fixed the issue, and now you can keep the original file path with spaces as you did(no escape is needed). And I will publish this fix in next release.

@Huachao Huachao closed this as completed Jun 20, 2019
@Huachao
Copy link
Owner

Huachao commented Jul 31, 2019

@gitter-me I have fixed this in latest version 0.22.0, and you can try this fix, and you just need to keep the original whitespaces in the file path

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

No branches or pull requests

2 participants