Add upload function to request module.

1. add upload function to request module.
2. drop integer limits.
3. add a config to configuration struct.