使用 busboy 解析 multipart/form-data,添加 preservePath 选项以保留文件路径

This commit is contained in:
2025-12-21 13:48:21 +08:00
parent 8a633feb4f
commit 5e43c5fc4c
5 changed files with 11 additions and 10 deletions

3
src/utils/sleep.ts Normal file
View File

@@ -0,0 +1,3 @@
export const sleep = (ms: number = 1000) => {
return new Promise((resolve) => setTimeout(resolve, ms));
}