How to increase the max file size of java action - store url to file document?

0
We are using java action – store url to file document for consuming files from external system using REST API? whenever we receive file size of more than 210MB, the microflow errors out. We have identified the java file (~\javasource\saml20\actions\StoreURLToFileDocument.java ) where the max setting is configured, is it possible to increase this limit? If yes, please explain on the steps, thanks!
asked
1 answers
0

The Community Commons module also provides this functionality, and has this limit set in code.

If you want to change this, my approach would be to create a new Java Action in one of your own modules. Copy the code for the static storeURLtoFileDocument method in Misc.java into the action and tweak the values in there. This means you aren’t changing functionality other parts of your application may be relying on, while allowing you to change values such as increasing the size of the upload where it is a problem.

https://github.com/mendix/CommunityCommons/blob/master/src/CommunityCommons/javasource/communitycommons/Misc.java#L223
https://docs.mendix.com/howto/logic-business-rules/extending-your-application-with-custom-java

Hope this helps.

answered