added client side code to support file uploads.