Essence of the question:
Solution to your problem:
Submit On Demand mode is suitable for you.
All the necessary and step-by-step instructions are present in the article, you can additionally transfer custom data and send the form with a regular
post multipart/form-data request.