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;
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.
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-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
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-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 12/2/06, Damien Hull dhull@digitaloverload.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-l@Wikimedia.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.
I got it working!
Taylor Ralston wrote:
On 12/2/06, Damien Hull dhull@digitaloverload.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-l@Wikimedia.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-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org