Let\'s say I have this element on the page:
This will create a button that allows the users
Unless you're trying to upload the file using ajax, just submit the form to /upload/image.
If you do want to upload the image in the background (e.g. without submitting the whole form), you can use ajax: