Thanks, Arthur,
I think that's $wgHashedSharedUploadDirectory - as listed in includes/DefaultSettings.php
Before I modify this, is there a straightforward way of transforming things so that files already uploaded are not busted? Can I just drop them into the top level directory and everything will be OK.
Also should I worry about the SharedUpload part of the name of this flag, since the SharedUpload configuration is by default itself disabled. (This could just be an ambiguity in the variable naming convention)
Cefn http://cefn.com
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Arthur Guy Sent: 22 September 2005 16:59 To: 'MediaWiki announcements and site admin list' Subject: RE: [Mediawiki-l] Uploaded files, URL addressing and file types
The funny URL is a hashed directory system; this is designed so that loads of files don't end up in one folder. You can turn this off from within the LocalSettings.php file
Regards, Arthur Guy
arthur@astarsolutions.co.uk a star solutions www.astarsolutions.co.uk
Audio & Video Leads Adapters and Accessories
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of cefn.hoile@bt.com Sent: 22 September 2005 16:55 To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] Uploaded files, URL addressing and file types
A few issues with uploading and addressing files.
First of all, I can't find a sensible way of addressing an uploaded file as a URL. I seem to end up with bizarre urls, such as http://myserver/images/e/eb/IST.jpg
Where what I really want is something like http://myserver/uploads/IST.jpg http://myserver/mediawiki/uploads/IST.jpg
without the random URL.
This means I can reliably refer to such files from the template or from anywhere else, and then the versioning can look after serving up the latest version of the file, and people can manage it as per normal uploaded files.
Secondly, I'm confused as to why all uploaded files are treated as images, when for our purposes, things like pdfs and other documents uploaded by people would be really helpful, and as far as I can see, this functionality is identical, but somehow there is an inbuilt assumption that all files are images, in terms of the filter for file upload, but also in all of the referencing syntax.
Glad of any suggestions.
Cefn http://cefn.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
'a star solutions' disclaimer The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. We believe that this communication is free from viruses and other potentially dangerous programmes, but the recipient opens this communication at their own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this communication
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Firstly add $wgHashedSharedUploadDirectory = false; To the local settings file, this will set all new uploads to a single directory, you should be fine as long as you don't have more than a few thousand files.
I IMAGINE all the existing files will still be accessible with the old directory structure; this should be stored in the database, if you want to change them you will need to remove and re-upload the files or alter the files manually and then change the database references. Someone please correct me if I am wrong
I shouldn't worry about the shared part
Arthur Guy
arthur@astarsolutions.co.uk a star solutions www.astarsolutions.co.uk
Audio & Video Leads Adapters and Accessories
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of cefn.hoile@bt.com Sent: 22 September 2005 17:57 To: mediawiki-l@Wikimedia.org Subject: RE: [Mediawiki-l] Uploaded files, URL addressing and file types
Thanks, Arthur,
I think that's $wgHashedSharedUploadDirectory - as listed in includes/DefaultSettings.php
Before I modify this, is there a straightforward way of transforming things so that files already uploaded are not busted? Can I just drop them into the top level directory and everything will be OK.
Also should I worry about the SharedUpload part of the name of this flag, since the SharedUpload configuration is by default itself disabled. (This could just be an ambiguity in the variable naming convention)
Cefn http://cefn.com
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Arthur Guy Sent: 22 September 2005 16:59 To: 'MediaWiki announcements and site admin list' Subject: RE: [Mediawiki-l] Uploaded files, URL addressing and file types
The funny URL is a hashed directory system; this is designed so that loads of files don't end up in one folder. You can turn this off from within the LocalSettings.php file
Regards, Arthur Guy
arthur@astarsolutions.co.uk a star solutions www.astarsolutions.co.uk
Audio & Video Leads Adapters and Accessories
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of cefn.hoile@bt.com Sent: 22 September 2005 16:55 To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] Uploaded files, URL addressing and file types
A few issues with uploading and addressing files.
First of all, I can't find a sensible way of addressing an uploaded file as a URL. I seem to end up with bizarre urls, such as http://myserver/images/e/eb/IST.jpg
Where what I really want is something like http://myserver/uploads/IST.jpg http://myserver/mediawiki/uploads/IST.jpg
without the random URL.
This means I can reliably refer to such files from the template or from anywhere else, and then the versioning can look after serving up the latest version of the file, and people can manage it as per normal uploaded files.
Secondly, I'm confused as to why all uploaded files are treated as images, when for our purposes, things like pdfs and other documents uploaded by people would be really helpful, and as far as I can see, this functionality is identical, but somehow there is an inbuilt assumption that all files are images, in terms of the filter for file upload, but also in all of the referencing syntax.
Glad of any suggestions.
Cefn http://cefn.com _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
'a star solutions' disclaimer The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. We believe that this communication is free from viruses and other potentially dangerous programmes, but the recipient opens this communication at their own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this communication
_______________________________________________ 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
'a star solutions' disclaimer The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. We believe that this communication is free from viruses and other potentially dangerous programmes, but the recipient opens this communication at their own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this communication
cefn.hoile@bt.com wrote:
Thanks, Arthur,
I think that's $wgHashedSharedUploadDirectory - as listed in includes/DefaultSettings.php
Only if you're disabling it for the shared uploads (using uploads from a second wiki). For the wiki's own uploads, use the other variable that's not shared.
Before I modify this, is there a straightforward way of transforming things so that files already uploaded are not busted? Can I just drop them into the top level directory and everything will be OK.
Rename a lot of things.
Also should I worry about the SharedUpload part of the name of this flag, since the SharedUpload configuration is by default itself disabled. (This could just be an ambiguity in the variable naming convention)
Yes, that's the wrong variable.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org