]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/mediafile.php
File upload logging for dummies
[quix0rs-gnu-social.git] / lib / mediafile.php
index 1e0fb39769953ba772ae6916e6cf7593136c75d6..7534dc53cb82318df7d3b9b7b3813bcc7f247088 100644 (file)
@@ -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.' ));
             }
         }