mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@2967 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -110,7 +110,7 @@ while ( file_exists($uploads['path'] . "/$filename") )
|
||||
$file = $uploads['path'] . "/$filename";
|
||||
if ( false === move_uploaded_file($_FILES['image']['tmp_name'], $file) )
|
||||
die('The uploaded file could not be moved to $file.');
|
||||
chmod($file, 0775);
|
||||
chmod($file, 0666); // FIXME: Need to set this according to rw bits on parent dir.
|
||||
|
||||
// Compute the URL
|
||||
$url = $uploads['url'] . "/$filename";
|
||||
|
||||
Reference in New Issue
Block a user