• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload successful! But..

#1
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.