I have a few mp3 files and I would like to make them available to the user so they can download them. First, I upload the file and used this tag[[media:mymp3.mp3 | file name]] but it keep redirects to the upload page. Please help. Thank you
Two things to check first, in case it's some irritating little thing:
1. Trim the space off the end of the filename, e.g. [[Media:Mymp3.mp3|File name]] 2. Check that the extension of the file as uploaded was _lowercase_ mp3, and not uppercase. This would trip up, too.
Side note: #2 is a prevalent problem; shouldn't we be converting extensions to lowercase prior to handling the uploading?
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
I have a few mp3 files and I would like to make them available to the user so they can download them. First, I upload the file and used this tag[[media:mymp3.mp3 | file name]] but it keep redirects to the upload page. Please help. Thank you _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I tried to remove the space after the .mp3 extension but no help. Also, the file extension is lowercase.
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]] then it becomes http://www.xyz.org/index.php?title=Special:Upload&wpDestFile=Michael_Xyz..., which will lead to the upload page.
I am using version 1.5.3.
Thank you
On 1/4/06, Rob Church robchur@gmail.com wrote:
Two things to check first, in case it's some irritating little thing:
- Trim the space off the end of the filename, e.g.
[[Media:Mymp3.mp3|File name]] 2. Check that the extension of the file as uploaded was _lowercase_ mp3, and not uppercase. This would trip up, too.
Side note: #2 is a prevalent problem; shouldn't we be converting extensions to lowercase prior to handling the uploading?
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
I have a few mp3 files and I would like to make them available to the
user
so they can download them. First, I upload the file and used this tag[[media:mymp3.mp3 | file name]] but it keep redirects to the upload page. Please help. Thank you _______________________________________________ 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 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]] then it becomes
Have you tried keeping everything the same but replacing the "Media:" with "Image:"? This should link to the file's description page, and will tell you whether you have in fact typed the filename right. There should also be a "recent uploads" list somewhere - Special:Log, maybe? - that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if it was possible to end up with a file uploaded with no description page (so that link code might think "page doesn't exist, therefore file doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP]
When I uploaded the file, I see this warning message '".mp3" is not a recommended image file format.' and I don't see any mp3 file listing on any logs. Is there a setting somewhere that prevent me from upload mp3 file? I can ftp a few mp3 files and see if that works but I can not get out of my company proxy server at this point so I have to try it at home.
On 1/4/06, Rowan Collins rowan.collins@gmail.com wrote:
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]]
then it
becomes
Have you tried keeping everything the same but replacing the "Media:" with "Image:"? This should link to the file's description page, and will tell you whether you have in fact typed the filename right. There should also be a "recent uploads" list somewhere - Special:Log, maybe?
- that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if it was possible to end up with a file uploaded with no description page (so that link code might think "page doesn't exist, therefore file doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
1. A straight FTP won't work, so don't bother. 2. On the same warning screen, you should have had a button appear which would allow you to continue with the upload.
a. If you did, did you click it? ;-) b. If not, you need to set $wgStrictFileExtensions = false; in LocalSettings.php
It sounds like the upload wasn't completed after all. Does the file exist somewhere inside the uploads directory?
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
When I uploaded the file, I see this warning message '".mp3" is not a recommended image file format.' and I don't see any mp3 file listing on any logs. Is there a setting somewhere that prevent me from upload mp3 file? I can ftp a few mp3 files and see if that works but I can not get out of my company proxy server at this point so I have to try it at home.
On 1/4/06, Rowan Collins rowan.collins@gmail.com wrote:
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]]
then it
becomes
Have you tried keeping everything the same but replacing the "Media:" with "Image:"? This should link to the file's description page, and will tell you whether you have in fact typed the filename right. There should also be a "recent uploads" list somewhere - Special:Log, maybe?
- that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if it was possible to end up with a file uploaded with no description page (so that link code might think "page doesn't exist, therefore file doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP] _______________________________________________ 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
I didn't see the button next to the warning message.
I don't know if the file exist on the server or not since I can not log on the server at this point. Also, Is there a way for me to FTP these? I have alot of mp3 files and I can not afford to upload 1 by 1.
I will try to change the setting when I get home.
Thank you very much for your help.
On 1/4/06, Rob Church robchur@gmail.com wrote:
- A straight FTP won't work, so don't bother.
- On the same warning screen, you should have had a button appear
which would allow you to continue with the upload.
a. If you did, did you click it? ;-) b. If not, you need to set $wgStrictFileExtensions = false; in LocalSettings.php
It sounds like the upload wasn't completed after all. Does the file exist somewhere inside the uploads directory?
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
When I uploaded the file, I see this warning message '".mp3" is not a recommended image file format.' and I don't see any mp3 file listing on
any
logs. Is there a setting somewhere that prevent me from upload mp3
file? I
can ftp a few mp3 files and see if that works but I can not get out of
my
company proxy server at this point so I have to try it at home.
On 1/4/06, Rowan Collins rowan.collins@gmail.com wrote:
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]]
then it
becomes
Have you tried keeping everything the same but replacing the "Media:" with "Image:"? This should link to the file's description page, and will tell you whether you have in fact typed the filename right. There should also be a "recent uploads" list somewhere - Special:Log, maybe?
- that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if it was possible to end up with a file uploaded with no description page (so that link code might think "page doesn't exist, therefore file doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP] _______________________________________________ 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
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
You can't do it via FTP, since the database needs to be updated to contain certain pieces of information about the file. However, there is a Perl script which allows for mass-uploading of files, and since it's oft-requested, I might write a mass-upload maintenance script of some description.
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
I didn't see the button next to the warning message.
I don't know if the file exist on the server or not since I can not log on the server at this point. Also, Is there a way for me to FTP these? I have alot of mp3 files and I can not afford to upload 1 by 1.
I will try to change the setting when I get home.
Thank you very much for your help.
On 1/4/06, Rob Church robchur@gmail.com wrote:
- A straight FTP won't work, so don't bother.
- On the same warning screen, you should have had a button appear
which would allow you to continue with the upload.
a. If you did, did you click it? ;-) b. If not, you need to set $wgStrictFileExtensions = false; in LocalSettings.php
It sounds like the upload wasn't completed after all. Does the file exist somewhere inside the uploads directory?
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
When I uploaded the file, I see this warning message '".mp3" is not a recommended image file format.' and I don't see any mp3 file listing on
any
logs. Is there a setting somewhere that prevent me from upload mp3
file? I
can ftp a few mp3 files and see if that works but I can not get out of
my
company proxy server at this point so I have to try it at home.
On 1/4/06, Rowan Collins rowan.collins@gmail.com wrote:
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
For example, if I place this tag [[Media:Michael_Xyz.mp3|Download]]
then it
becomes
Have you tried keeping everything the same but replacing the "Media:" with "Image:"? This should link to the file's description page, and will tell you whether you have in fact typed the filename right. There should also be a "recent uploads" list somewhere - Special:Log, maybe?
- that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if it was possible to end up with a file uploaded with no description page (so that link code might think "page doesn't exist, therefore file doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP] _______________________________________________ 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
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
It works by adding this config setting $wgStrictFileExtensions = false; to the LocalSetting.php file.
Why is Mediawiki adding a couple of weird directories underneath the Image directory when you upload? For example, *I have url like this * http://www.xx.org/images/1/14/Michael_Xyz.mp3 when I finished uploading the file. Is there away to prevent this from happening and placed all file under one specified directory instead?
Also, can you please let us know when you have this mass-uploading file done?
Thank you
On 1/4/06, Rob Church robchur@gmail.com wrote:
You can't do it via FTP, since the database needs to be updated to contain certain pieces of information about the file. However, there is a Perl script which allows for mass-uploading of files, and since it's oft-requested, I might write a mass-upload maintenance script of some description.
Rob Church
On 04/01/06, Dharmaweb.org http://dharmaweb.org/ dharmaweb@gmail.com wrote:
I didn't see the button next to the warning message.
I don't know if the file exist on the server or not since I can not log
on
the server at this point. Also, Is there a way for me to FTP these? I
have
alot of mp3 files and I can not afford to upload 1 by 1.
I will try to change the setting when I get home.
Thank you very much for your help.
On 1/4/06, Rob Church robchur@gmail.com wrote:
- A straight FTP won't work, so don't bother.
- On the same warning screen, you should have had a button appear
which would allow you to continue with the upload.
a. If you did, did you click it? ;-) b. If not, you need to set $wgStrictFileExtensions = false; in LocalSettings.php
It sounds like the upload wasn't completed after all. Does the file exist somewhere inside the uploads directory?
Rob Church
On 04/01/06, Dharmaweb.org http://dharmaweb.org/ <
dharmaweb@gmail.com> wrote:
When I uploaded the file, I see this warning message '".mp3" is not
a
recommended image file format.' and I don't see any mp3 file
listing on
any
logs. Is there a setting somewhere that prevent me from upload mp3
file? I
can ftp a few mp3 files and see if that works but I can not get out
of
my
company proxy server at this point so I have to try it at home.
On 1/4/06, Rowan Collins <rowan.collins@gmail.com > wrote:
On 04/01/06, Dharmaweb.org http://dharmaweb.org/ <
dharmaweb@gmail.com> wrote:
For example, if I place this tag
[[Media:Michael_Xyz.mp3|Download]]
then it
becomes
Have you tried keeping everything the same but replacing the
"Media:"
with "Image:"? This should link to the file's description page,
and
will tell you whether you have in fact typed the filename right.
There
should also be a "recent uploads" list somewhere - Special:Log,
maybe?
- that will have the file's name as te software thinks it is.
Otherwise, something very odd is happening. I wondered briefly if
it
was possible to end up with a file uploaded with no description
page
(so that link code might think "page doesn't exist, therefore file
doesn't"), but I wasn't able to create such a situation.
-- Rowan Collins BSc [IMSoP] _______________________________________________ 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
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
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
1. I *did* mention that ;-) 2. Yes. Set $wgHashedUploadDirectory = false; in the same file 3. I'll announce it on this mailing list
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
It works by adding this config setting $wgStrictFileExtensions = false; to the LocalSetting.php file.
Why is Mediawiki adding a couple of weird directories underneath the Image directory when you upload? For example, *I have url like this * http://www.xx.org/images/1/14/Michael_Xyz.mp3 when I finished uploading the file. Is there away to prevent this from happening and placed all file under one specified directory instead?
Also, can you please let us know when you have this mass-uploading file done?
All you to do is insert the data into the image table right? Since all of my file are are new so there is nothing to enter into the imagelink table. What I don't understand is where do you specified the path to the actual file in the image directory?
On 1/4/06, Rob Church robchur@gmail.com wrote:
- I *did* mention that ;-)
- Yes. Set $wgHashedUploadDirectory = false; in the same file
- I'll announce it on this mailing list
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
It works by adding this config setting $wgStrictFileExtensions = false;
to
the LocalSetting.php file.
Why is Mediawiki adding a couple of weird directories underneath the
Image
directory when you upload? For example, *I have url like this * http://www.xx.org/images/1/14/Michael_Xyz.mp3 when I finished uploading
the
file. Is there away to prevent this from happening and placed all file under one specified directory instead?
Also, can you please let us know when you have this mass-uploading file done?
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Well that's the nonstandard bit. MediaWiki hashes the upload directory, as you've seen. So the script will be liable to work with MediaWiki's own image handling libraries in order to make life simpler.
Rob Church
On 05/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
All you to do is insert the data into the image table right? Since all of my file are are new so there is nothing to enter into the imagelink table. What I don't understand is where do you specified the path to the actual file in the image directory?
On 1/4/06, Rob Church robchur@gmail.com wrote:
- I *did* mention that ;-)
- Yes. Set $wgHashedUploadDirectory = false; in the same file
- I'll announce it on this mailing list
Rob Church
On 04/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
It works by adding this config setting $wgStrictFileExtensions = false;
to
the LocalSetting.php file.
Why is Mediawiki adding a couple of weird directories underneath the
Image
directory when you upload? For example, *I have url like this * http://www.xx.org/images/1/14/Michael_Xyz.mp3 when I finished uploading
the
file. Is there away to prevent this from happening and placed all file under one specified directory instead?
Also, can you please let us know when you have this mass-uploading file done?
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 05/01/06, Dharmaweb.org dharmaweb@gmail.com wrote:
What I don't understand is where do you specified the path to the actual file in the image directory?
I don't know if it *is* stored anywhere, for performance reasons or whatever, but it's worth pointing out that the divisions in the upload directory are not arbitrary, and rely exclusively on the filenames. IIRC, they're the first and second characters of an MD5 hash of the actual name. So it's perfectly possible to not store them anywhere, since they can be recalculated whenever you know the name of the file you're looking for.
The purpose, I think, is to avoid servers containing large numbers of uploads having one directory with a huge number of images in it. (Indeed, the images can even be transparently split across multiple servers this way, by mounting the sub-directories over the network.)
There was talk of using file *content* hashes and all sorts a while back, but I'm not sure anything got implemented. -- Rowan Collins BSc [IMSoP]
mediawiki-l@lists.wikimedia.org