fix file upload
This commit is contained in:
@ -60,7 +60,9 @@ const handler: NextApiHandler = async (req, res) => {
|
||||
},
|
||||
data: {
|
||||
photo: {
|
||||
name: getFileName((await uploadPhoto).filepath),
|
||||
name: getFileName(
|
||||
(await uploadPhoto).originalFilename ?? "resource ICON"
|
||||
),
|
||||
data: photoBuffer,
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user