I am using a script that handles file uploads.
Part of the script passes information from several fields to a variable name like this:
var inputs = data.context.find(':input').not(':button');
Later in the script it is used like this:
data.formData = inputs.serializeArray();
The issue I am having is that I added a couple of additional, general, fields to the beginning of the form that I want to use in the form handler as well.
The two fields I added are:
<input id="uploaderName" type="text" name="uploaderName" required value="">
<input id="uploaderEmail" type="text" name="uploaderEmail" required value="">
So when this is called:
data.formData = inputs.serializeArray();
I need formData to include inputs.serializeArray(), uploaderName, and uploaderEmail.
Any ideas?