When a file say 100 MB size is uploaded from browser will Spring hold whole data in memory or stores in the disk temporarily. After going through Spring doc I know how to set a
Yes, but if it's stored on disk it will be deleted after the request has been processed. You can set the threshold for when it will be stored on disk:
In your multipartresolver bean definition, e.g.:
If it's held in memory, you could store it in the session and process it in the next request, for instance, such as if you're waiting for a user confirmation.