Hi,
I have the following settings, and it works fine:
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "{$IP}/images"; // Required for local
images, even if using commons
$wgHashedSharedUploadDirectory = true; // Enable hash (path/a/aa/)
directory layout.
$wgHashedUploadDirectory = true;
$wgEnableUploads = true;
plus making the directory hashed (/a/b/) by adding the extra line below
in the ForeignAPIRepo settings:
Enrique wrote:
hi
i'm trying configure $wgForeignFileRepos to see images of wikipedia on
my local wiki. to do have configured to curl request:
<...>
$wgForeignFileRepos[] = array(
'class' => 'ForeignAPIRepo',
'name' => 'shared',
'hashLevels' => '2',
'apibase' =>
'http://commons.wikimedia.org/w/api.php',
'fetchDescription' => false,
'descriptionCacheExpiry' => 43200,
'apiThumbCacheExpiry' => 43200,
);;
Regards,
// Rolf Lampa