implemented file uploading using html5 fileApi