2
0

🐛 (fileUpload) Fix files deletion on result delete

This commit is contained in:
Baptiste Arnaud
2024-03-04 11:38:20 +01:00
parent 434b06767d
commit f14eb91d2a
2 changed files with 18 additions and 6 deletions

View File

@@ -172,7 +172,7 @@ export const generateUploadUrl = publicProcedure
filePath,
maxFileSize:
fileUploadBlock.options && 'sizeLimit' in fileUploadBlock.options
? fileUploadBlock.options.sizeLimit
? (fileUploadBlock.options.sizeLimit as string)
: env.NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE,
})