Java: Image upload with JavaScript – File is damaged, corrupted or too large

I am using Spring Boot as backend server and I have a JavaScript frontend. For sending data between front- and backend I’m using the Axios library, which usually works pretty fine. The Problem: The …