Skip to content

Multipart: Boundary not found,问题修复 #6

@idvip

Description

@idvip

该框架在新版本的multer已经上不能用了。会出现Multipart: Boundary not found错误。解决办法,去掉h5uploader.js第55行的xhr.setRequestHeader("Content-Type", "multipart/form-data");即可。
如果手动指定了Content-Type则会丢失后面的boundary=这段数据。索性就直接去掉让浏览器自动添加Content-Type,这样的Content-Type才是完整的。希望作者留意,采纳并更新下程序。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions