formData.append(name, value); formData.append(name, value, filename); //https://developer.mozilla.org/en-US/docs/Web/API/FormData/append //The filename reported to the server (a USVString), when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.