title: Uploading large size (more than 1 GB) file on Amazon S3 using Java: Large files temporary consuming lot of space in server
body: <p>I am trying to upload large files (more than 1 GB) on amazon S3 using Java</p>
  <ul>
  <li><p>I am using AWS S3 multipart upload to upload large files in chunks.
  <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/HLuploadFileJava.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonS3/latest/dev/HLuploadFileJava.html</a></p>
  </li>
  <li><p>I am using also uploading the files in chunks from the frontend.</p>
  </li>
  </ul>
  <p>So, the file being uploaded will be temporarily uploaded on the server in chunks and it will be uploaded on S3 in chunks.
  Now the problem is that this method puts a huge load on the server since this consumes server space temporarily. If multiple users are trying to upload large files at the same time then it will create an issue.</p>
  <p>Is there any way of directly uploaded files from the user's system to amazon S3 in chunks without storing the file on server temporarily?</p>
  <p>If upload the files via frontend directly then there a major risk of keys getting exposed.</p>