file upload from local controller to the client