CodeIgniter Forums
upload successful! But.. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: upload successful! But.. (/showthread.php?tid=66754)



upload successful! But.. - startbbs - 11-28-2016

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?