IPFS file size upload on Self hosted Moralis

I am running a self-hosted version of Moralis and every time I try to upload a .wav 15MB or larger I get this error.

error: [C0006] Request failed: Request body larger than maxBodyLength limit {“code”:141,“stack”:“Error: [C0006] Request failed: Request body larger than maxBodyLength limit\n (1)\parse-server-migration\build\cloud\generated\evmApi.js:410:15\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:96:5)”}

I’ll be glad to know what the cause is. Thanks.

how do you try to upload it? did you set the limit higher for axios in case that you use axios?

I get the error when I user Moralis.cloud.uploadFolder to upload the file

how does this work with a self hosted server?

it works well to upload smaller files?

you can try to make a http request directly to the api in cloud code with axios and set there the size limit

Yes, it works well on smaller files

I think that there is an implicit limit in the sdk for that max size that you could hit in this case, maybe it works for bigger file sizes if you make the http request to the API directly

I thought the max file size was 1 GB or has that been phased out?

it will not work with 1GB now, I don’t think that it will work with more than 100MB now, it was working with more than 100MB with a moralis server

ok, thanks for the update. I will try to make a request directly.