Welcome Guest, Not a member yet? Register   Sign In
upload successful! But..
#1

(This post was last modified: 11-28-2016, 08:39 AM by startbbs.)

the files was uploaded successfully.
but there is still an error.
PHP Code:
chmod(): Operation not permitted 
Code:
BASEPATH/HTTP/Files/UploadedFile.php at line 183
PHP Code:
if (! @move_uploaded_file($this->path$destination))
178         {
179             $error error_get_last();
180             throw new \RuntimeException(sprintf('Could not move file %s to %s (%s)'basename($this->path), $targetPathstrip_tags($error['message'])));
181         }
182 
183         
@chmod($targetPath0777 & ~umask());
184 
185         
// Success, so store our new information
186         $this->path $targetPath;
187         $this->name $name;
188         $this->hasMoved true;
189 
190         
return true
please note "@chmod($targetPath0777 & ~umask());", is it useful?
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply




Theme © iAndrew 2016 - Forum software by © MyBB