文件上传数据库

This commit is contained in:
2025-07-09 21:34:52 +08:00
parent b9b53fdee7
commit b0924f8a7d
5 changed files with 71 additions and 45 deletions
+1 -1
View File
@@ -559,7 +559,7 @@
canvas.toBlob(resolve, 'image/png', 0.9)
);
post_file("/image", blob, `avatar_${Date.now()}.jpg`, (c) => {
post_file("/image", blob, `avatar.png`, (c) => {
if (c.statusCode == 200) {
if (c.data.err_code == 0) {