I need my users to be able to post a photo of themselves to my bonita-community site, and so need to be able to “POST” to a groovy page (or something similar) - but the PageController class from which these are implemented has no “doPost” method.
How can I do this (or the equivalent)?
Thanks.
Hi,
I would think the upload file widget available on the UI Designer would do the job. Did you build your pages with the UI Designer?
Best
Hi. Thanks for your answer.
I’ve tried the widget and it works, but it’s rather “dumb”. I cant (for example) reject an upload that is too big or the wrong file type (etc). The checks can only be done after the upload, which isnt ideal and could even permit a DoS attack.
I was hoping for something more sophisticated. I’m happy to use the widget but was hoping I could POST the file to a custom page where I can run some validation early in the process.
I think maybe it needs a custom Rest API extension. But was wondering whether someone had done it before.
C