Skip to content

Commit

Permalink
Ya no muevo el archivo, tenía que usar un directorio con permisos de …
Browse files Browse the repository at this point in the history
…escritura.
  • Loading branch information
Ubuntu committed May 27, 2014
1 parent 8892db9 commit 8048685
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/restapi/includes/messages.php
Expand Up @@ -116,10 +116,8 @@ static function imageAdd(){
$pi = pathinfo($_POST['name']);
$dest.= '.'.$pi['extension'];
file_put_contents($dest,base64_decode($_POST['image']));
$ret = rename($dest,$imageDirectory);
$response = new phpList_RESTAPI_Response();
$response->setData('Filename', basename($dest));
$response->setData('ret', $ret);
$response->output();
}
}
Expand Down

0 comments on commit 8048685

Please sign in to comment.