Implement basic file upload function

use xhr2, It only support modern browsers.
It is the next work that supports legacy browsers.