Closed bshafiei-ir closed 3 years ago
?
what is your question?
I said that when form contains , jsonSerialize can not serialize it. How can I do it?
This plugin doesn't support <input type="file">
. JQuery's serializeArray (the base serialization method this plugin is based of) also doesn't support data types. That is because the W3C rules for successful controls determine that data from file select elements should not be serialized.
In practice, you browser's JavaScript is not allowed to read contents from files. This is for security, otherwise any website could silently upload contents of your file system into their website. If you want to control file uploads from JavaScript, you have other options. Some resources for you: Javascript upload file, file upload with jquery, serialize file input.
Good luck!
Please add it. thanks.