I am working on a project where the user will upload a file to some endpoint. When the user uplaods the file my controller will parse the contents of this file and do some processing etc.
Something like this would happen
1.) User uploads a file to an endpoint.
2.) My controller gets informed about this
3.) Appropriate service reads the file
Now I know how spring controllers work but in this case instead of the json
I need to have a file
. So my controller will not receive a json. Instead it will receive a file which I will process.
I am not sure what the correct way to solve this problem is? I tried searching about this but am not finding suitable results. If some one can give some hints which can push me in the right direction, it would be very helpful.