jquery ajax TypeError: 'append' called on an object that does not implement interface FormData. -- Загрузка файлов
Primary tabs
Должно помочь добавление опций:
processData: false, contentType: false,
То есть ваш ajax запрос должен выглядеть как-то так:
var formData = new FormData($("#chat_send_message_form")[0]); $.ajax({ url: '/es/report_chat/ajax-chat/push-comment', type: 'POST', data: formData, dataType: 'json', processData: false, contentType: false,
- Log in to post comments
- 3865 reads