Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
allow overriding the rack multipart parser tempfile class #639
This allows for more flexibility in how to buffer (or stream) multipart file uploads, rather than always using Tempfile and buffering to local TMPDIR.
Also allow a custom buffering size, to optimize large file reads.
Our initial use case for this is to use it in combination with Passenger's new PassengerBufferUpload feature in order to allow a Rails action to stream multipart file uploads to S3 as they are being uploaded by the client, with absolutely no local copy stored at all.
Our initial solution was to make a custom
Let me know if using these