Warning: file_exists(): open_basedir restriction in effect. File(/vendor/composer/jetpack_autoload_classmap.php) is not within the allowed path(s): (C:/root/web/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\root\web\wp-content\plugins\jetpack\vendor\class-autoloader-handler.php on line 70

Warning: is_readable(): open_basedir restriction in effect. File(/vendor/composer/jetpack_autoload_classmap.php) is not within the allowed path(s): (C:/root/web/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\root\web\wp-content\plugins\jetpack\vendor\class-classes-handler.php on line 87

Warning: is_readable(): open_basedir restriction in effect. File(/vendor/composer/jetpack_autoload_filemap.php) is not within the allowed path(s): (C:/root/web/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\root\web\wp-content\plugins\jetpack\vendor\class-files-handler.php on line 87
ajaxFileUpload上传成功也执行error方法 – 北门清燕

ajaxFileUpload上传成功也执行error方法

在使用“ajaxFileUpload.js”作上传时,发现不论上传成功与否,都是执行error里的方法,百度到了好多解决方法。例如:

1、改写为:eval(“data = \”” + data +”\””);
2、改写为:data = JQuery.parseJSON(JQuery(data).text());

最终经测试后:
使用:data = JQuery.parseJSON(data);

具体内容,可参考:https://github.com/bmqy/ajaxfileupload-bmqy

发表评论

电子邮件地址不会被公开。 必填项已用*标注