扬州建设工程信息网站,织梦手机网站怎么安装教程视频教程,装修设计平台,网站改版做301我正在上传到777权限文件夹。但是,上载的文件具有664个权限和“nobody”的“owner”。如何更改以下scipt以将文件上载为777并设置所有者?代码来自plupload的upload.php文件if (strpos($contentType, multipart) ! false) {if (isset($_FILES[file][tmp_name]) multipart) ! false) {if (isset($_FILES[file][tmp_name]) is_uploaded_file($_FILES[file][tmp_name])) {// Open temp file$out fopen($targetDir . DIRECTORY_SEPARATOR . $fileName, $chunk 0 ? wb : ab);if ($out) {// Read binary input stream and append it to temp file$in fopen($_FILES[file][tmp_name], rb);if ($in) {while ($buff fread($in, 4096))fwrite($out, $buff);} elsedie({jsonrpc : 2.0, error : {code: 101, message: Failed to open input stream.}, id : id});fclose($out);unlink($_FILES[file][tmp_name]);} elsedie({jsonrpc : 2.0, error : {code: 102, message: Failed to open output stream.}, id : id});} elsedie({jsonrpc : 2.0, error : {code: 103, message: Failed to move uploaded file.}, id : id});} else {// Open temp file$out fopen($targetDir . DIRECTORY_SEPARATOR . $fileName, $chunk 0 ? wb : ab);if ($out) {// Read binary input stream and append it to temp file$in fopen(php://input, rb);if ($in) {while ($buff fread($in, 4096))fwrite($out, $buff);} elsedie({jsonrpc : 2.0, error : {code: 101, message: Failed to open input stream.}, id : id});fclose($out);} elsedie({jsonrpc : 2.0, error : {code: 102, message: Failed to open output stream.}, id : id});}