How I can upload a larger image from a html form and store through the api call?

I have a html form with file type and using ajax for submitting the form

I also have an api on server side for storing the image but in api Iam not able to getting the image.

Please guide me, how I can upload a larger image from a html form and store through the api call?

For api I am using ‘nimble:restivus’ package