MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)
MIT License
1.43k stars 124 forks source link

How to use formData option{} #209

Open mthohirin opened 5 years ago

mthohirin commented 5 years ago

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