MoOx / pjax

Easily enable fast Ajax navigation on any website (using pushState + xhr)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use formData option{}

mthohirin opened this issue · comments

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