List Info

Thread: Uploading files




Uploading files
user name
2006-12-02 23:14:26
I would like to add pictures to my MediaWiki site. According
to some 
documentation I was reading I need to enable file uploads in

LocalSettings.php. I copied the code, pasted it into the 
LocalSettings.php file. When I went to upload a file it said
file 
uploads were not allowed.

How do I turn file uploads on?

I tried the following code

    $wgUploadPath       = "$wgScriptPath/uploads";
     ## Wiki 1.5 defaults to /images, but allows more than
just images
    $wgUploadDirectory  = "$IP/uploads";          
     ## Wiki 1.5 defaults to /images, but allows more than
just images

    ## To enable image uploads, make sure the above
'$wgUploadPath' directory is writable by Apache User or
group.
    ## /(i.e.  chmod og+w uploads images)/  then the
following should be true:
    $wgEnableUploads                = true;



_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Uploading files
user name
2006-12-02 23:36:03
> How do I turn file uploads on?
>    ## To enable image uploads, make sure the above
'$wgUploadPath' directory is writable by Apache User or
group.
>    ## /(i.e.  chmod og+w uploads images)/

Did you do that too?  What are the permissions on that
folder?

Cheers,
Adam.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Uploading files
user name
2006-12-03 03:04:28
I checked. Made a few changes and I still get the same
thing. File 
uploads are not allowed.

Adam Nielsen wrote:
>> How do I turn file uploads on?
>>    ## To enable image uploads, make sure the above
'$wgUploadPath' directory is writable by Apache User or
group.
>>    ## /(i.e.  chmod og+w uploads images)/
>>     
>
> Did you do that too?  What are the permissions on that
folder?
>
> Cheers,
> Adam.
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-lWikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>   

_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Uploading files
user name
2006-12-03 03:24:18
I got it working!

I placed the code at the top of the LocalSettings.php file.
What I 
didn't know is that ferther down the file there was a line
turning file 
uploads off. Once I changed that to "true" I was
able to upload files.

Damien Hull wrote:
> I checked. Made a few changes and I still get the same
thing. File 
> uploads are not allowed.
>
> Adam Nielsen wrote:
>   
>>> How do I turn file uploads on?
>>>    ## To enable image uploads, make sure the
above '$wgUploadPath' directory is writable by Apache User
or group.
>>>    ## /(i.e.  chmod og+w uploads images)/
>>>     
>>>       
>> Did you do that too?  What are the permissions on
that folder?
>>
>> Cheers,
>> Adam.
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-lWikimedia.org
>> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>   
>>     
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-lWikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>   

_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Uploading files
user name
2006-12-03 09:22:46
On 12/2/06, Damien Hull <dhulldigitaloverload.net>
wrote:
>
> I would like to add pictures to my MediaWiki site.
According to some
> documentation I was reading I need to enable file
uploads in
> LocalSettings.php. I copied the code, pasted it into
the
> LocalSettings.php file. When I went to upload a file it
said file
> uploads were not allowed.
>
> How do I turn file uploads on?
>
> I tried the following code
>
>     $wgUploadPath       =
"$wgScriptPath/uploads";      ## Wiki 1.5defaults
to /images, but allows more than just images
>     $wgUploadDirectory  = "$IP/uploads";     
          ## Wiki 1.5defaults to /images, but allows more
than just images
>
>     ## To enable image uploads, make sure the above
'$wgUploadPath'
> directory is writable by Apache User or group.
>     ## /(i.e.  chmod og+w uploads images)/  then the
following should be
> true:
>     $wgEnableUploads                = true;
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-lWikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>

Off the top of my head I can think of two things. First, is
uploading files
enabled on your web server? You might have to enable it
first through your
php.ini file. The line in my file looks like this:

file_uploads = On

Secondly, in your LocalSettings.php, I believe that the
$wgEnableUploads
variable is already included. Maybe you're pasting that code
before the
$wgEnableUploads = false line. This in effect is setting it
to true, then
later setting it to false. Check to see if your file has two
occurrences of
this variable.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Uploading files (It's working!)
user name
2006-12-03 16:47:13
I got it working!


Taylor Ralston wrote:
> On 12/2/06, Damien Hull <dhulldigitaloverload.net>
wrote:
>   
>> I would like to add pictures to my MediaWiki site.
According to some
>> documentation I was reading I need to enable file
uploads in
>> LocalSettings.php. I copied the code, pasted it
into the
>> LocalSettings.php file. When I went to upload a
file it said file
>> uploads were not allowed.
>>
>> How do I turn file uploads on?
>>
>> I tried the following code
>>
>>     $wgUploadPath       =
"$wgScriptPath/uploads";      ## Wiki 1.5defaults
to /images, but allows more than just images
>>     $wgUploadDirectory  = "$IP/uploads"; 
              ## Wiki 1.5defaults to /images, but allows
more than just images
>>
>>     ## To enable image uploads, make sure the above
'$wgUploadPath'
>> directory is writable by Apache User or group.
>>     ## /(i.e.  chmod og+w uploads images)/  then
the following should be
>> true:
>>     $wgEnableUploads                = true;
>>
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-lWikimedia.org
>> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>>
>>     
>
> Off the top of my head I can think of two things.
First, is uploading files
> enabled on your web server? You might have to enable it
first through your
> php.ini file. The line in my file looks like this:
>
> file_uploads = On
>
> Secondly, in your LocalSettings.php, I believe that the
$wgEnableUploads
> variable is already included. Maybe you're pasting that
code before the
> $wgEnableUploads = false line. This in effect is
setting it to true, then
> later setting it to false. Check to see if your file
has two occurrences of
> this variable.
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-lWikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>   

_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )