I run the moralis server locally.
use this kind of code:
const uploadFolder = async (fileName: string, file: File) => {
const base64 = await convertBase64(file);
const content = String(base64).replace(/^data:image\/[a-z]+;base64,/, "")
const options = {
abi: [
{
path: `images/${fileName}`,
content
},
],
};
const path = await Web3Api.storage.uploadFolder(options);
return path
};
where content is the base64 encoding of an existing file - about 100KB.
The server response has the status code 413 Payload Too Large
PayloadTooLargeError: request entity too large
Any suggestions on how i can avoid this error? Thank you