2
我需要從網絡瀏覽器發送數據到本地FS。發送數據我使用Vue-JS component如何使用vibed將文件加載到本地文件系統?
<file-upload class="my-file-uploader" name="myFile" id="myCustomId" action="/upload" multiple>Inside Slot Text</file-upload>
我的服務器端基於vibed。但我找不到如何將二進制數據保存到本地FS的示例。
router.any("/upload", &upload);
...
void upload(HTTPServerRequest req, HTTPServerResponse res)
{
}
這似乎是我應該使用HTTPServerRequest .files但我不明白如何使用它。用戶上傳需要的是多個文件。