upload an image onto a dynamic page to replace photo

I have an image on my dynamic page which is linked to the database. I’ve added the upload input button and linked it to the same database item but it’s greyed out and doesn’t work. How can I have an input on the dynamic page that changes the image by the user? I’d like to do something similar with a comment rich text box to update the feedback text box.