['name'] in your 2nd post should be ['type'] if you want the type, though if you're uploading a file the name shouldn't be null...
Are you using a different form to upload these images? If so, make sure the field name for the "input type='file'" has a name of "userfile", because that's what you've used in your 2nd code (for the audio files).
If you still can't get it, post all of your code or an extensive portion that pertains to these two uploads (instead of snippets here and there) and post a link to the script so we can test it out.
EDIT: Also, wma's are audio/x-ms-wma I believe, and mp3's are something like audio/x-mpeg.