Commit dc2527c1 authored by Evelyn's avatar Evelyn Committed by GitHub

Update mg_parse_multipart.md

parent bee95654
...@@ -9,13 +9,13 @@ signature: | ...@@ -9,13 +9,13 @@ signature: |
size_t *chunk_len); size_t *chunk_len);
--- ---
Parse buffer `buf`, `buf_len` that contains multipart form data chunks. Parses the buffer `buf`, `buf_len` that contains multipart form data chunks.
Store chunk name in a `var_name`, `var_name_len` buffer. Stores the chunk name in a `var_name`, `var_name_len` buffer.
If a chunk is an uploaded file, then `file_name`, `file_name_len` is If a chunk is an uploaded file, then `file_name`, `file_name_len` is
filled with an uploaded file name. `chunk`, `chunk_len` filled with an uploaded file name. `chunk`, `chunk_len`
points to the chunk data. points to the chunk data.
Return: number of bytes to skip to the next chunk, or 0 if there are Return: number of bytes to skip to the next chunk or 0 if there are
no more chunks. no more chunks.
Usage example: Usage example:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment