25

I am currently mocking out several endpoints in Paw, including one that would typicaly receive multipart form data as a combination of standard text input as well as a file.

If it were a form, it would look like this:

<form action="/image/save" method="post" enctype="multipart/form-data">
    <input name="text-stuff" type="text" />
    <input name="image-stuff" type="file" />
    <input type="submit" value="Save"/>
</form>

How do I upload a file as part of a multipart request in Paw?

Chris
  • 54,599
  • 30
  • 149
  • 186

1 Answers1

53

And found 5 mins later.

You need to right click on the field, then select "File".

Link

Update Dec 2017

https://paw.cloud/docs/getting-started/set-request-body#Set_Multipart_body

Previously

As note in the comments, the original link has died https://web.archive.org/web/20150326015604/http://luckymarmot.com/paw/doc/Send_Files_as_Multipart_Form_Data

Original reference

https://luckymarmot.com/paw/doc/Send_Files_as_Multipart_Form_Data

Chris
  • 54,599
  • 30
  • 149
  • 186
  • 2
    you can also access dynamic values through the auto complete. I you start typing `{fi` you will see the file option in the auto complete menu. – Matthaus Woolard Dec 27 '15 at 09:19
  • Ah nice tip matthaus woolard – Chris Dec 27 '15 at 09:21
  • 2
    Link is dead. Old version: https://web.archive.org/web/20150326015604/http://luckymarmot.com/paw/doc/Send_Files_as_Multipart_Form_Data – Brian Low Apr 09 '16 at 18:11
  • Here's an updated article about request body and multipart in Paw: https://paw.cloud/docs/getting-started/set-request-body#Set_Multipart_body – Micha Mazaheri Dec 03 '17 at 15:47
  • 1
    Thanks @MichaMazaheri - love Paw, use it daily! – Chris Dec 04 '17 at 22:50
  • .... well... a little button would have been nice. Who is going to right-click everywhere :D thanks for the update; it saved me a lot of time. – Jørgen Mar 09 '19 at 14:44