To receive an upload from the client, we need to register a
StreamReceiver that accepts a URL to handle receiving an upload stream.
To create a
StreamReceiver, we first need to create a
StreamVariable that monitors and controls terminal upload during the time it is being streamed.
Then the stream can be registered through the
StreamReceiver streamReceiver = new StreamReceiver( getElement().getNode(), "upload", getStreamVariable()); getElement().setAttribute("target", streamReceiver);