Mailing List Archive

Enabling uploading
How do you enable this feature? Where is it found?
Enabling uploading [ In reply to ]
How do you enable this feature? Where is it found?
Re: Enabling uploading [ In reply to ]
heidialyssa wrote:
> How do you enable this feature? Where is it found?

In LocalSettings.php you'll see lines like these:

## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
#$wgDisableUploads = false;
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/sw/bin/convert";

Ensure that the 'images' subdirectory is writable by the web server.

-- brion vibber (brion @ pobox.com)
Re: Enabling uploading [ In reply to ]
On 8/31/04 11:30 PM, "Brion Vibber" <brion@pobox.com> pontificated:

> heidialyssa wrote:
>> How do you enable this feature? Where is it found?
>
> In LocalSettings.php you'll see lines like these:
>
> ## To enable image uploads, make sure the 'images' directory
> ## is writable, then uncomment this:
> #$wgDisableUploads = false;
> $wgUseImageResize = true;
> $wgUseImageMagick = true;
> $wgImageMagickConvertCommand = "/sw/bin/convert";
>
> Ensure that the 'images' subdirectory is writable by the web server.
>
> -- brion vibber (brion @ pobox.com)
I am receiving an error message:

Could not copy file "/var/tmp/phpzawcdM" to
"/Users/wiki/Sites/mediawiki/images/a/a8/Map_of_USA_highlighting_Wyoming.png
".

I did all of the above, however am still getting this message and cannot
upload.

My thanks in advance.
Re: Enabling uploading [ In reply to ]
On 8/31/04 11:30 PM, "Brion Vibber" <brion@pobox.com> pontificated:

> heidialyssa wrote:
>> How do you enable this feature? Where is it found?
>
> In LocalSettings.php you'll see lines like these:
>
> ## To enable image uploads, make sure the 'images' directory
> ## is writable, then uncomment this:
> #$wgDisableUploads = false;
> $wgUseImageResize = true;
> $wgUseImageMagick = true;
> $wgImageMagickConvertCommand = "/sw/bin/convert";
>
> Ensure that the 'images' subdirectory is writable by the web server.
>
> -- brion vibber (brion @ pobox.com)
I am receiving an error message:

Could not copy file "/var/tmp/phpzawcdM" to
"/Users/wiki/Sites/mediawiki/images/a/a8/Map_of_USA_highlighting_Wyoming.png
".

I did all of the above, however am still getting this message and cannot
upload.

My thanks in advance.
Re: Enabling uploading [ In reply to ]
heidialyssa wrote:
> I am receiving an error message:
>
> Could not copy file "/var/tmp/phpzawcdM" to
> "/Users/wiki/Sites/mediawiki/images/a/a8/Map_of_USA_highlighting_Wyoming.png
> ".
>
> I did all of the above, however am still getting this message and cannot
> upload.

Can you confirm that the images directory is writable by the web server?

The simplest way to do this is to go in there in a terminal and run
'chmod a+w images'. (It looks like you're on a Mac; to do this in
Finder, open 'Get Info' on the images folder, open up the 'Ownership &
Permissions' and 'Details' bits and select "Read & Write" for 'Others'.)

Confirm also that PHP isn't configured in Safe Mode, as this tends to
cause similar problems.

-- brion vibber (brion @ pobox.com)