I am trying to upload very big files greater than 1gb. I am using MultipartConfig
and HttpServletRequest.getPart(String)
from servlet api. I deployed in my server and tried uploading a file and its working like a charm.
Then I went on reading about MultipartConfig here. I understood that when large files are uploaded it writes parts of the file to a temporary location when the threshold is reached. And later on we have to delete the temporary files using part.delete()
.
What if I don't want to mention the temporary location? Will something bad happen to my application while uploading big files? I don't want to mention a temporary location becasue we cant gurantee about the production environment.