webuploader在ie7下的flash模式的使用

本文介绍了在Internet Explorer 7中,由于不支持H5模式,WebUploader如何切换到Flash模式进行图片上传。针对Flash模式下遇到的问题,如.swf文件引入、MD5大小限制以及二进制流上传的解决方案进行了详细说明。在二进制流上传时,建议使用file_get_contents('php://input')来获取上传内容。
摘要由CSDN通过智能技术生成

webuploader在ie7下不能使用h5模式上传图片,只能使用flash模式。

但是出现了几个问题:(1)必须正确的引入.swf文件,才能使webuploader正常运行

                                        (2)正常传输模式下,flash模式使用的md5不能上传太大的文件,(好像只能上传50k左右),所以要改成二进制流sendAsBinary的模式上传

                                        (3)二进制上传的使用file_get_contents(‘php://input’)获取上传内容(自己百度)

代码:html

<div class="descriptPic" style="color:red;margin:0 -100px 4px;">
    <label id="contactpic" style="width:100px;color:#727272;">问题截图:</label>
    <!-- <input type="file" name="descriptPic[]" value="选择图片"/> -->
    <div id="uploader" class="uploader" style="width: 400px;float:left;margin-bottom: 15px;">
        <div class="queueList">
                    <div class="webuploader-container" id="filePicker" style=" width: 150px;">
                        <div style="position: absolute;top: 0;left: 0;width: 150px;height: 45px;overflow: hidden;bottom: auto;right: auto;" id="rt_rt_1aec5bmr5qg9m5o1eat1pahqe1">
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值