在ColdFusion中,用cffile上传JPG图片,IE弹出"The MIME type of the uploaded file "image/jpeg" was not accepted by the server" 窗口,Firefox弹出"The MIME type of the uploaded file "image/jpeg" was not accepted by the server" 窗口。 原因:当从客户端向服务器上传文件时,IE用FindMimeFromDat查找文件类型,Firefox使用标准类型。
解决方案:把image/jpeg'和'image/pjpeg'添加到可接受文件类型中。 参考资料:http://msdn.microsoft.com/en-us/library/ms775147(VS.85).aspx |
|
来自: Jeln > 《coldfusion》