Update 1.3.0.md

This commit is contained in:
Leonid Stryzhevskyi 2021-10-29 01:40:21 +03:00 committed by GitHub
parent 446ad6710d
commit cf41cabcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ ENDPOINT("POST", "upload", upload,
multipart::Reader multipartReader(&multipart);
/* 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 */
request->transferBody(&multipartReader);