Replies: 1 comment
-
Hey @skydiablo, this is a good question which we encountered a few times already, I also recently posted a similar answer in #196. We have support for file uploads by loading the file into memory before writing to the filesystem, which works perfectly fine for smaller files, but becomes problematic for larger requests as we should avoid having multiple gigabytes of data stored in memory. To avoid this, ReactPHP provides the option to use streaming request bodies as per https://github.com/reactphp/http#streaming-incoming-request. While this would allow you to accept arbitrary file uploads, it's arguably also somewhat harder to use. With that said, I agree that we should look for a way to make uploading large files easier and somehow create better support for this in ReactPHP. I know that @clue also took a few attempts at this, so taken from reactphp/http#428:
I plan to open a ticket for this in our HTTP component soon and then go further from there on 👍 |
Beta Was this translation helpful? Give feedback.
-
Hi! At the risk of asking the obvious question again, and undoubtedly, there might already be an answer that hasn't helped me so far, I would like to make a new attempt. Why is it (from my perspective) impossible to process a request larger than 64k? I understand why this limit was chosen as the default, but I haven't found a way to adjust this default to suit my needs. Have I overlooked something fundamental, or is there a deliberate effort to prevent this? With somewhat puzzled regards, Volker.
another try from me: #196
Beta Was this translation helpful? Give feedback.
All reactions