mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Update 1.3.0.md
This commit is contained in:
parent
446ad6710d
commit
cf41cabcb5
@ -301,7 +301,7 @@ ENDPOINT("POST", "upload", upload,
|
|||||||
multipart::Reader multipartReader(&multipart);
|
multipart::Reader multipartReader(&multipart);
|
||||||
|
|
||||||
/* setup reader to stream parts to a temporary files by default */
|
/* setup reader to stream parts to a temporary files by default */
|
||||||
multipartReader.setDefaultPartReader(multipart::createTemporaryFilePartReader("/Users/leonid/Documents/tmp"));
|
multipartReader.setDefaultPartReader(multipart::createTemporaryFilePartReader("/tmp" /* /tmp directory */));
|
||||||
|
|
||||||
/* upload multipart data */
|
/* upload multipart data */
|
||||||
request->transferBody(&multipartReader);
|
request->transferBody(&multipartReader);
|
||||||
|
Loading…
Reference in New Issue
Block a user