I want to access the request object before a file upload gets converted into a tempfile and add it to a queue to be processed later, mainly because IO objects can’t be marshaled or serialized. How can I do this?
I’ll also need to “redo” the request at later point. At what point in the rails request lifecycle would I hook into to do this?
I don’t know how feasible this is, but I would use rack middleware.