Have you got privileges to access your filestore? If so, you may have to rename the file to, let us say, filename.mp3, having reached it ‘the hard way’ using a file manager. You can otherwise change the code to permit uploads of this filetype. I don’t think it is Yahoo that prevents you from uploading an unknown type of files. It is remotely possible, however. What version of WordPress are you using by the way?
As a side note, cPanel’s file manager stubbornly prevents uploads on files which it suspects are Trojans. It can become very frustrating. I wonder if it will perceive your files similarly.
Thanks for the tip. I did the “rename file locally/upload/rename file extersion serverside” and it worked.
I’m using WordPress 2.0 I think (be gentle with me it’s my first blog 😉
[sarcasm] be gentle with WP2.0 because it’s fragile. Glad this helped solve your problem…
Additional TidBit – an even easier solution was to just use
the Yahoo File Manager to do the upload (instead of doing it
from the wordpress page). The yahoo file manager was happy to
upload the .3p2 file and then I was able to use WordPress to link
to it.
Yes, WordPress does have a stock set of accepted file extensions/types. It is completely pluggable. See the function wp_handle_upload in admin-functions.php.
I went into that file, found the
w_handle_upload function, and I see a sort of
switch statement, with extensions mapped to “MIME-types”
[whatever they are!]
I found the following entries.
‘asf|asx|wax|wmv|wmx’ => ‘video/asf’,
‘avi’ => ‘video/avi’,
‘mov|qt’ => ‘video/quicktime’,
‘mpeg|mpg|mpe’ => ‘video/mpeg’,
I atteempted to look up the mime-type for .3g2 files at this site,
http://filext.com/detaillist.php?extdetail=3G2
but the mime-type entry was blank.
I think that .3g2 is a quicktime type, so I added into line 3 as follows:
‘mov|qt|3g2’ => ‘video/quicktime’,
Now I am able to upload fine. Thanks for the tip!
Is there any way you can allow uploading of ANY filetype?