change fileupload to preview in the client side and also upload to
server side.