I’m using the upload module to write the uploaded file to disk as soon as it arrives in nginx. In addition, I’d like to create 2 subrequests:
- POST to a URL containing the uploaded file
- POST to another URL without the uploaded file
The second request is easy to do because the upload module has already stripped out the upload. My problem is with the first request: How do I get the uploaded file back into the the subrequest.
A solution for my question has been committed to the echo module.