I have a large byte
file (log file) that I want to upload to server using PUT
request. The reason I choose PUT
is simply because I can use it to create a new resource or update an existing resource.
My problem is how to handle situation when server or Network disruption happens during PUT request.
That is say I have a huge file, during the transfer of which, Network failure happens. When the network resumes, I dont want to start the entire upload. How would I handle this?
I am using JAX-RS
API with RESTeasy
implementation.