Skip to content

Upload file - no such file #707

Closed Answered by ivan-velasco
mmfrxx asked this question in Q&A
Discussion options

You must be logged in to vote

Try the following @mmfrxx

name: Test
steps:
- type: http
  method: POST
  url: "{{.url}}"
  path: ?format=file
  multipart_form:
    file: '@{{.venom.testsuite.workdir}}/file.jpeg'
  info: 
  - "REQUEST body {{.result.request}}"
  - "RESPONSE body {{.result.bodyjson}}"
  assertions:
    - result.statuscode ShouldEqual 200
    - result.bodyjson.success ShouldEqual true

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mmfrxx
Comment options

Answer selected by mmfrxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants