Thanks for your response.

Is there any way to avoid calling realloc() repeatedly to get more memory. 
when I call mg_upload, then only it should write data into a directory 
specified in mg_upload.

or

Is there any way to write data in chunks.

Thanks,
Phanendra

On Thursday, January 16, 2014 7:57:51 PM UTC+5:30, Sergey Lyubka wrote:
>
> 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]<javascript:>
> > 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> 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.

Reply via email to