{"action":"created","issue":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/1187","labels_url":"https://api.github.com/repos/fex-team/webuploader/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/fex-team/webuploader/issues/1187/comments","events_url":"https://api.github.com/repos/fex-team/webuploader/issues/1187/events","html_url":"https://github.com/fex-team/webuploader/issues/1187","id":101373492,"number":1187,"title":"上传文件的时候，如果文件太大的话会报错。小文件可以，在Linux下","user":{"login":"liushunqiu","id":13740807,"avatar_url":"https://avatars.githubusercontent.com/u/13740807?v=3","gravatar_id":"","url":"https://api.github.com/users/liushunqiu","html_url":"https://github.com/liushunqiu","followers_url":"https://api.github.com/users/liushunqiu/followers","following_url":"https://api.github.com/users/liushunqiu/following{/other_user}","gists_url":"https://api.github.com/users/liushunqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/liushunqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liushunqiu/subscriptions","organizations_url":"https://api.github.com/users/liushunqiu/orgs","repos_url":"https://api.github.com/users/liushunqiu/repos","events_url":"https://api.github.com/users/liushunqiu/events{/privacy}","received_events_url":"https://api.github.com/users/liushunqiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T09:01:54Z","updated_at":"2015-08-17T10:26:56Z","closed_at":null,"body":"code: 102, message: \"Failed to open output stream. 已经在ftp修改了上传的文件夹权限，~不知道为什么~求大神解答~"},"comment":{"url":"https://api.github.com/repos/fex-team/webuploader/issues/comments/131769267","html_url":"https://github.com/fex-team/webuploader/issues/1187#issuecomment-131769267","issue_url":"https://api.github.com/repos/fex-team/webuploader/issues/1187","id":131769267,"user":{"login":"liushunqiu","id":13740807,"avatar_url":"https://avatars.githubusercontent.com/u/13740807?v=3","gravatar_id":"","url":"https://api.github.com/users/liushunqiu","html_url":"https://github.com/liushunqiu","followers_url":"https://api.github.com/users/liushunqiu/followers","following_url":"https://api.github.com/users/liushunqiu/following{/other_user}","gists_url":"https://api.github.com/users/liushunqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/liushunqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liushunqiu/subscriptions","organizations_url":"https://api.github.com/users/liushunqiu/orgs","repos_url":"https://api.github.com/users/liushunqiu/repos","events_url":"https://api.github.com/users/liushunqiu/events{/privacy}","received_events_url":"https://api.github.com/users/liushunqiu/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T10:26:56Z","updated_at":"2015-08-17T10:26:56Z","body":"解决了，是因为上传的时候走得 if(isset($_REQUEST[\"name\"])) {\r\n            $fileName = $_REQUEST[\"name\"];\r\n            $file_ext = strtolower(trim(array_pop(explode(\".\",$fileName))));\r\n\t\t\tif(empty($file_ext)) $file_ext = 'flv';\r\n            $uploadDir.=$file_ext;\r\n            if(!file_exists($targetDir)){\r\n                @mkdir($targetDir,0777,true);\r\n            }\r\n            if (!file_exists($uploadDir)){\r\n                @mkdir($uploadDir,0777,true);\r\n            }\r\n            $uploadfile=uniqid().'.'.$file_ext;\r\n            move_uploaded_file($_REQUEST[\"name\"],$uploadfile);\r\n        } elseif (!empty($_FILES)) {\r\n            $fileName = $_FILES[\"file\"][\"name\"];\r\n            $file_ext = strtolower(trim(array_pop(explode(\".\",$fileName))));\r\n\t\t\tif(empty($file_ext)) $file_ext = 'flv';\r\n            $uploadDir.=$file_ext;\r\n            if(!file_exists($targetDir)){\r\n                @mkdir($targetDir,0777,true);\r\n            }\r\n            if (!file_exists($uploadDir)){\r\n                @mkdir($uploadDir,0777,true);\r\n            }\r\n            $uploadfile=uniqid().'.'.$file_ext;\r\n            move_uploaded_file($_FILES['file'][\"name\"],$uploadfile);\r\n        } else {\r\n\t\t\t$fileName = $_FILES[\"file\"][\"name\"];\r\n            $file_ext = strtolower(trim(array_pop(explode(\".\",$fileName))));\r\n\t\t\tif(empty($file_ext)) $file_ext = 'flv';\r\n            $uploadDir.=$file_ext;\r\n            $uploadfile = uniqid(\"file_\").'.'.$file_ext;\r\n        }\r\n走得第三步，有些搞不懂因为上面已经判断了$_FILE是否为空了，怎么在第三步下面还能获取到？"}}