X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmediafile.php;h=7534dc53cb82318df7d3b9b7b3813bcc7f247088;hb=952f68fed55aae6908fe1c85f1e96809d381af55;hp=1e0fb39769953ba772ae6916e6cf7593136c75d6;hpb=a9bdf761e87d97bdf49a74774ef756dfd12bbd6b;p=quix0rs-gnu-social.git diff --git a/lib/mediafile.php b/lib/mediafile.php index 1e0fb39769..7534dc53cb 100644 --- a/lib/mediafile.php +++ b/lib/mediafile.php @@ -306,10 +306,10 @@ class MediaFile $result = copy($stream['uri'], $filepath) && chmod($filepath, 0664); if (!$result) { + common_log(LOG_ERR, 'File could not be moved (or chmodded) from '._ve($stream['uri']) . ' to ' . _ve($filepath)); // TRANS: Client exception thrown when a file upload operation fails because the file could // TRANS: not be moved from the temporary folder to the permanent file location. - throw new ClientException(_('File could not be moved to destination directory.' . - $stream['uri'] . ' ' . $filepath)); + throw new ClientException(_('File could not be moved to destination directory.' )); } }