How to use formData option{} #209

Closed
opened 2019-08-10 09:52:50 -05:00 by mthohirin · 0 comments
mthohirin commented 2019-08-10 09:52:50 -05:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#209