mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Update mg_file_upload_handler.md
This commit is contained in:
1 parent
4d90bb0d02
commit
482a471abb
1 file changed
+1
-1
@@ -12,7 +12,7 @@ This handler can be used to implement file uploads with minimum code.
|
|||||||
This handler will process MG_EV_HTTP_PART_* events and store file data into
|
This handler will process MG_EV_HTTP_PART_* events and store file data into
|
||||||
a local file.
|
a local file.
|
||||||
`local_name_fn` will be invoked with whatever name was provided by the client
|
`local_name_fn` will be invoked with whatever name was provided by the client
|
||||||
and will expect the name of the local file to open. Return value of NULL will
|
and will expect the name of the local file to open. A return value of NULL will
|
||||||
abort file upload (client will get a "403 Forbidden" response). If non-null,
|
abort file upload (client will get a "403 Forbidden" response). If non-null,
|
||||||
the returned string must be heap-allocated and will be freed by the caller.
|
the returned string must be heap-allocated and will be freed by the caller.
|
||||||
Exception: it is ok to return the same string verbatim.
|
Exception: it is ok to return the same string verbatim.
|
||||||
|
|||||||
Reference in new issue
Block a user