I have a flatiron app that now needs to be expanded to handle multipart/form-data upload of images.
How does one handle file uploads in a flatiron app? union/director seem to ignore multipart/form-data, and all my attempts to integrate formidable have failed – I assume this is because of the actions union performs before formidable gets a hold of the request object.
I have tried normal and streaming: true routes, as well as raw handling in the before array.
I can’t be the only person who needs this, so it’s probably been addressed and I apologize. I just can’t find any reference materials.
You can use union with connect.multipart (or bodyParser) which already uses node-formidable.