Fixed a bug on file uploading
Wrote a demo for file uploading