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

Missing example for file request with cy.request() #375

Open
shwarcu opened this issue Feb 27, 2020 · 0 comments
Open

Missing example for file request with cy.request() #375

shwarcu opened this issue Feb 27, 2020 · 0 comments

Comments

@shwarcu
Copy link

shwarcu commented Feb 27, 2020

Example curl:

curl -X POST \
  https://localhost:8080/api/action/upload_file
  -H 'Authorization: Bearer some token' 
  -H 'Content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'
  -F file=@/Users/Me/Documents/image.png

Is such action even supported? Could you please add an example of such request?

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

No branches or pull requests

2 participants