Upload file to Confluence

Hi there,

I want to develop a page which allow user upload his image to server and display on that page for user to preview withou reloading this page.
Could you please let me know how to do?
Thank you very much!

What have you done so far?