Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
I have an issue uploading videos larger than ~45 mb to Azure blob storage using the payload upload fields. The following error is shown in my console.
err: {
"type": "TypeError",
"message": "Cannot read properties of undefined (reading 'timeout')",
"stack":
TypeError: Cannot read properties of undefined (reading 'timeout')
at Object.handleUpload (/Users/thijssmudde/projects/eurocom/Cloud.CMS.Contento/node_modules/@payloadcms/plugin-cloud-storage/src/adapters/azure/handleUpload.ts:38:36)
at map (/node_modules/@payloadcms/plugin-cloud-storage/src/hooks/beforeChange.ts:48:25)
at Array.map (<anonymous>)
at hook (/node_modules/@payloadcms/plugin-cloud-storage/src/hooks/beforeChange.ts:47:32)
at /node_modules/payload/src/collections/operations/create.ts:185:16
at create (/node_modules/payload/src/collections/operations/create.ts:181:5)
at createHandler (/node_modules/payload/src/collections/requestHandlers/create.ts:26:17)
}
In the CMS there is no error shown to the user. After saving the video the user is redirected to the detail video page. However if you click on the video link its a 404.
Cannot GET /videos/test-(1080p)-1.mp4
My file upload limit is more than enough to handle these files.
I found a similar issue with AWS amplify. POST objects are limited in size. For me it worked fine on localhost and then failed when deployed. I had to implement multipart uploads to S3 to work around it.
Link to reproduction
No response
Describe the Bug
I have an issue uploading videos larger than ~45 mb to Azure blob storage using the payload upload fields. The following error is shown in my console.
In the CMS there is no error shown to the user. After saving the video the user is redirected to the detail video page. However if you click on the video link its a 404.
My file upload limit is more than enough to handle these files.
I have the following related packages:
To Reproduce
Payload Version
2.18.3
Adapters and Plugins
@payloadcms/plugin-cloud-storage