wiring the rest service into the upload servelet