且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用.post()和enctype ="multipart/form-data"形式

更新时间:2022-01-25 08:40:28

您无法通过ajax上传文件.

You can't upload files via ajax.

您可以尝试使用iframe和其他方法(例如Java和Flash上​​传器)来伪造类似ajax的文件.

You can try to fake the ajax-like upload using iframes, other methods, like java and flash uploaders.