Mongoose buffers POST data before it calls the callback, calling realloc() repeatedly to get more memory. If the file is big, realloc() fails. You can use -DUSE_POST_SIZE_LIMIT=X to limit POST site (documented at http://cesanta.com/#docs,Embed.md)
When successful, mongoose passes POST contents to the callback via struct mg_connection::content pointer. On Thu, Jan 16, 2014 at 2:24 PM, V Phani <[email protected]> wrote: > > Hi, > > I just tried to upload file to server, which doesn't has enough memory. > When I click upload in web-page (enctype as multipart/form-data)mongoose > trying to store file in somewhere in server and showing Out of memory, but > here on server side I am not using any mg_upload or mg_read to save it. > where by default it stores ? > > Thanks in advance > > Phanendra > > -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
