file uploading on client side works