加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Why does uploadify.swf request /false URL ?

发布时间:2020-12-15 07:00:06 所属栏目:百科 来源:网络整理
导读:I use jquery.uploadify-v3.0.0 in a ASP.NET MVC context with these settings: $('#file_upload').uploadify({ 'swf': '/Content/uploadify.swf', 'uploader': '/Foobar/Upload', 'cancelImage': '/Content/uploadify-cancel.png', 'auto': true, //'debug
I use jquery.uploadify-v3.0.0 in a ASP.NET MVC context with these settings:


$('#file_upload').uploadify({
'swf': '/Content/uploadify.swf',
'uploader': '/Foobar/Upload',
'cancelImage': '/Content/uploadify-cancel.png',
'auto': true,
//'debug': true,
'multi': true,
'fileSizeLimit': 65536,
'uploadLimit': 10,
'removeCompleted': false,
'onUploadSuccess': function (filedata,response) {
//var x = 1;
var jRes = $.parseJSON(response);
[...]
}


When the page has been loaded I see a request (using Fiddler) for /false:

GET http://127.0.0.1:51302/false HTTP/1.1
Host: 127.0.0.1:51302
Connection: keep-alive
Referer: http://localhost:51302/Content/uploadify.swf?preventswfcaching=1309329757858
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML,like Gecko) Chrome/12.0.742.100 Safari/534.30
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3


What is the purpose of requesting /false and how do I disable it ?


===============

it's a bug;
this's my solution:
find the function "completeURL"
insert if(!a){return ""}?
at the beginning of this function


Trackback :?http://www.uploadify.com/forum/#/discussion/7532/why-does-uploadify-swf-request-false-url-/p1

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读