Skip to content

Streaming requests: Write a file directly to disk #2049

Answered by ioquatix
ellcs asked this question in Q&A
Discussion options

You must be logged in to vote

The input is not buffered on Falcon, so env['rack.input'].each{|chunk| ...} will stream from the incoming request.

However, if you use multipart, this won't work as you imagine, since the multiple parts need to be buffered - this part is Rack.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ellcs
Comment options

@ioquatix
Comment options

Answer selected by ellcs
Comment options

You must be logged in to vote
1 reply
@ioquatix
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants