dify the copy
            //instead of the initial attribute
            var url = $(form).attr('action');

            var serializedData = new FormData();

            $(form).find('input').each(function (i, input) {
                if ($(input).attr('type') == 'file') {
                    serializedData.append($(input).attr('name'), $(input)[0].files[0]);
                } else {
                    serializedData.append($(input).attr('name'), $(input).val())
                }
            });

         