How do I serialize file type input in jquery

前端 未结 5 974
遥遥无期
遥遥无期 2020-12-31 10:04

Previously using Prototype I could serialize the input type file, it gave me the file name of the file being uploaded but when I serialized the form in jquery I just got the

5条回答
  •  情话喂你
    2020-12-31 10:55

    At the Prototype source (referenced above) serializeElements distinguishes between "element.type != 'file'" and others. Element type "file" is not serialized.

提交回复
热议问题