Earlier quoted context omitted.
You can do this in Spring Boot/ Java, with one Java class and one config file. And it will likely be an order of magnitude more scalable & reliable than the PHP, having proper logging, security features, etc. Whereas such PHP systems in my experience tend to be unreliable, in need of maintenance and often broken. The Java/ Spring Boot option will also take you all the way to a high-end commercial system/ large websit…
You installed a framework Spring for a simple feature to grab some text from a POST request and dump it into a database. Since in general you don't have thousands of users sending feedback at the same time I don't need a framework and if you know how to correctly create SQL statements you don't need a framework for SQL. There is nothing to log, if the db call fails you can put some text in a log file or do a curl to…
Simple file upload without any future expansion plan doesn't need hours of discussion.