Skip to content

JQuey-upload-file update formData is not working #199

@diegoalbgr

Description

@diegoalbgr

Hi, I have been trying to update the formData with the option "update" but when I update, it keep the old information.

This is my code:

var filesDataObj;

filesDataObj = $("#fileuploader").uploadFile({
            url: "someURL",
            multiple: true,
            dragDrop: true,
            fileName: "mallFiles",
            autoSubmit: false,
            formData: { "userID": 6, "statusID": 20 },
            onError: function (files, status, errMsg, pd) {
                console.log("Error: ");

                console.log(status);

                console.log(errMsg);
            }
        });


filesDataObj.update({

            formData: {
                "patientID": parseInt($("#patient_id").val()),
                "appointmentID": hospitalResponse.HospitalData.patientAppointment
            }

        });

Also thanks for the plugin, it still works in 2020 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions