0

I have an application in which file uploads are pretty common, but now we have a new scenario behind a proxy we can't control.

The proxy has a max-packet-size of 5 MB, meaning that we can only upload at most 5MB per request; and that breaks our usual 10-250 MB normal uploads.

Is there a standard Java-based (or Spring) way to upload files on configurable chunks/parts?

Note: From the client side (web) we planned to use jQuery-File-Upload

Timoteo Ponce
  • 510
  • 9
  • 27

1 Answers1

0

A combination of compression and chunking should work thus:

  1. Chunk your file upload: This requires the server to understand/support request chunking. This will support your general need for reducing a single large packet

  2. Compress the request: This also requires the server to support your compression encoding

Together, both mechanisms can significantly reduce your transmission size

kolossus
  • 20,559
  • 3
  • 52
  • 104