Implementing resource upload.

Control\Upload :
- Modified some methods.

Foundation\Resource : 
- Little fix