CodeIgniter Forums

Full Version: upload successful! But..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?