Skip to content

Can't upload large files (>= 4.5Mb) #393

Description

@johan-jnn

Hi everyone !
Just encountered an issue while using pagecms for my portfolio:

Context

I'm was trying to create a music-only media using the cms.
No issue until I tryed to upload my first music (4.5Mb) :
Image

Note that for a music that is 2.5Mb large there is no problem.

My .pages.yml

Request information

Image
// Payload :
{
  "type": "media",
  "name": "background-musics",
  "content": "<base64 encoded mp3>"
}

Can help, maybe

After some investigation, I deduced that you're using Vercel as the hosting service and apparently they are limiting the upload request size to 4.5Mb.
It's apparently possible to bypass this limitation as described by Vercel it-self:
https://vercel.com/kb/guide/how-to-bypass-vercel-body-size-limit-serverless-functions#upload-directly-to-the-source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions