Media collection uploads are failing with the following error:
err: {
"type": "TypeError",
"message": "A boolean was expected",
"stack":
TypeError: A boolean was expected
at /app/node_modules/sharp/lib/output.js:1612:15
at new Promise (<anonymous>)
at Sharp._pipeline (/app/node_modules/sharp/lib/output.js:1611:14)
at Sharp.toBuffer (/app/node_modules/sharp/lib/output.js:164:15)
at dj (/app/.next/server/chunks/8511.js:318:58899)
at async R (/app/.next/server/chunks/8511.js:304:42526)
at async a0 (/app/.next/server/chunks/8511.js:355:76583)
at async q (/app/.next/server/app/(payload)/api/[...slug]/route.js:1:6204)
at async /app/.next/server/app/(payload)/api/[...slug]/route.js:1:8853
at async rb.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:5:21059)
}
err: {
"type": "g",
"message": "There was a problem while uploading the file.",
"stack":
g: There was a problem while uploading the file.
at dj (/app/.next/server/chunks/8511.js:318:61056)
at async R (/app/.next/server/chunks/8511.js:304:42526)
at async a0 (/app/.next/server/chunks/8511.js:355:76583)
"data": null,
"isOperational": true,
"isPublic": true,
"status": 400,
"name": "g"
}
All other uploads (not using Sharp) are working.