How to add File upload in the Gift Message form

I am attempting to Include picture upload in the Present Message. To attain, produced an Area: image_url in the Table: present message utilizing db_schema. xml as well as utilized the extension_attributes. xml to establish as well as obtain the worth.

I have actually included the data upload aspect in the gift-message-form. html. Yet not able to pass the publishing data info to present Message API design (Since present message utilizing/ carts/mine/gift-message API).

Can anybody discuss with an instance just how to post the data utilizing the controller with Ajax as well as shop the uploaded data name in the Present message table in addition to this document.

Many Thanks ahead of time