New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem in very large file upload #1289
Comments
Did you change server config https://github.com/spumko/hapi/blob/master/docs/Reference.md#server.config.payload |
Thanks for the quick reply. Yes i did setup the large maxBytes and there are two issues in doing that. We wanted to setup for 5GB size for upload but that doesn't work as it seems it allocate large memory. If I setup like 10MB then from client side I can see that we are sending about stream with expect continue and as long as server keep sending response, client can send more data in chunk of large data size. But in this case the buffer still show only 64KB of data. I was expecting some kind of stream implementation or some kind of event that says receive this data and more is in queue till client sent all the data. Our goal is to receive very large file as S3 does using multipart upload. |
Sorry, maxBytes is not relevant here as you are not setting payload to raw or parse. It has no effect for payload mode stream. Can you show me what your route config looks like? |
var ProcessPUT = {
} output of this comes out like - In 100 continue Once we check Buffer then size of buffer comes out to be 64K only. |
Can you try this again with master? Note that 2.0 is very different in how payload is configured but I completely rewrote payload handling. |
Thank you Eran, I am going to try that and will let you know. Is that any example or update in document to know new process... hope its there and will figure it out. Thanks again. |
@ascaler The docs/Reference.md is up to date. |
Assuming it's fixed. |
Can you please provide me a working example to upload large file(as multipart) with expect-100 header? |
Most of the time when upload size is under 1M it upload correctly and we get all the data in request.req but if we try to upload 100MB file with mode: stream and multipart : stream , in that case it only give 65K data and can't find a way to get more data. Is that a know issue or is there any trick to get remaining data? Any help in this regard is highly appreciated.
The text was updated successfully, but these errors were encountered: