打开uploadify.fla,可以看到以下代码
- // Get actual folder pathfunction
- function getFolderPath():String {
- var folder:String = param.folder;
- /*
- if (param.folder.substr(0,1) != '/' && param.folder.substr(0,4) != 'http') {
- folder = param.pagepath + param.folder;
- var folderParts:Array = folder.split('/');
- for (var i = 0; i < folderParts.length; i++) {
- if (folderParts[i] == '..') {
- folderParts.splice(i - 1, 2);
- }
- }
- folder = folderParts.join('/');
- }*/
- return folder;
- }
可以看得出,确实是做了处理,解决办法就是想我以上代码,把那个出了的 if 块注释掉,至此,完美的运行Uploadify了。有兴趣的朋友可以试试。