A simple code example to make an ajax file upload