File dynamic values can be inserted in any field in Paw. You can also combine them with other dynamic values to make them more powerful. When you drop a file in the dynamic value it tells Paw it’s location, so Paw can read from it. But as Paw is fully sandboxed this is totally safe, Paw can get access to your file only if you explicitly drag and drop or use the Open File menu. Here are a few examples on how a File dynamic value can be used.
Send a file in multipart body
Send a file in multipart body
You can insert a File dynamic value in the Value field of a multipart body. You can give it the name that’s needed.
Put a file in an environment variable
Put a file in an environment variable
You can put a File dynamic value in an environment variable so that it can be used over multiple requests.
Combine File dynamic value with other dynamic values
Combine File dynamic value with other dynamic values
You can use a file as input for other dynamic values.
For example, if you need to extract a special value from the file use a RegExp Match and set your file as its input. Then as the file gets updated the value will update as well. This is useful for reading dynamic content generated by your development server etc.