Hi All,
Traditional Web App
I have more than 30 attachment that I want to send as an attachment in the email. But getting below error.
I am also checking that the size of all the attachments should be less than 20 MB otherwise I am escaping the attachments in the email. Can anyone have any idea what possibly went wrong.
Its just a lucky guess but could it be your request is too long because of the many base64 attributes (attachments)?
Thanks Stefano. Do you have any idea how to get rid of form this kind of errors.
Whether the number files exceed its limit or the total size of the files exceeded it.
You can try to use a zip component to send the files.
Yes I am checking it if it is less than 20 MB then triggered email I am not attaching the files. I didn't tried with the Zipping the file and send it in the email that could be the last option I will try.
But for now I don't want it to be in zip as attachments can also be go beyond 50 or more that is up to the user.
I think we need to wait for a MVP like @Nordin Ahdi to get confirmation.
If so, i think the only way is to have Outsystems increase it, or if you are on premise, you can do it yourself.
Hi guys,
Sorry for the late reply.
Although I wouldn't suggest to add that amount of attachments to an email, but instead I would at least add the files to a zip-archive in order to compress the size like Jose suggested.
Nevertheless, I believe the error "413: Request Entity Too Large" indicates that the request length exceeds the limit allowed by the application server.
These request limits can be increased by adjusting the maxRequestLength and maxAllowedContentLength parameters of the web.config. The same configuration is often needed to increase the file upload size limit.
maxRequestLength
maxAllowedContentLength
Try following these instructions using the Factory Configuration asset you can download from the Forge.
Regards,
Nordin
Thank you for confirming my suspicion. I was not fully convinced so that's why i asked for your input.
Thanks a lot @Nordin Ahdi and @Stefano Valente