Open mthohirin opened 5 years ago
i added enctype="multipart/form-data" to <form> element, but Pjax still dont want read my fileinput element <input type="file" />
enctype="multipart/form-data"
<form>
<input type="file" />
i also added "form[action]" into Pjax. Pjax({ elements: "form[action]" })
"form[action]"
Pjax({ elements: "form[action]" })
when i click submit, i got this error Pjax switch fail: TypeError: Cannot read properti 'match' of null
Pjax switch fail: TypeError: Cannot read properti 'match' of null
maybe any suggestion for my case? thanks
i added
enctype="multipart/form-data"
to<form>
element, but Pjax still dont want read my fileinput element<input type="file" />
i also added
"form[action]"
into Pjax.Pjax({ elements: "form[action]" })
when i click submit, i got this error
Pjax switch fail: TypeError: Cannot read properti 'match' of null
maybe any suggestion for my case? thanks