0

I'm attempting to upload a file in chunks for a Java server to save it to a file share.

When I try to split the file, its 2MB size increases quite a bit. I understand this is expected when converting it to base64, but even as a binary string it does.

I was using resumable to do the chunking, which worked great on our local, test, and dev environments but broke on production. I don't really have the access to figure out what's going on there, and I'm short of time, so I'd like to figure out how to chunk it manually so I can send it up as a normal ajax request within a JSON variable, as I'm positive that will work.

Is it a folly to expect the chunked uploaded file to be the same as the one you eventually save to the remote fileshare? It seems like it should be able to be done.

I have already tried javascript FileReader - parsing long file in chunks

and most others use multiform data, runs into the aforementioned issue of not working in production.

halfer
  • 19,824
  • 17
  • 99
  • 186
Marcel Marino
  • 962
  • 3
  • 17
  • 34
  • sounds like your production server might just need a cors adjustment. – dandavis Sep 17 '19 at 21:31
  • @dandavis We run everything through a node.js proxy server that runs on the same box the web server runs. Node pushes it to the java server, so I don't think its cors. Also I was able to debug on production (we're switching servers so the new prod server is still kinda open), and it is receiving and processing the request. It's just not doing what it is supposed to do. – Marcel Marino Sep 18 '19 at 13:12

0 Answers0