Cheers,
Sam Moffatt
http://pasamio.id.au
> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
>
I'm working on a component where I'm trying to use the media field type to
work with uploading and selecting MP3's. Looking at the code, it appears
that the view being pulled up by the media field only works with images.
Is there some way to make this work or would I need to hack away at the
appropriate com_media views to do what I am trying to do?
Thanks,
Michael
The problem here is the canUpload function in the Media helper class
which is the thing that AFAIK issues the invalid type error preventing
upload along with a few other checks. It shouldn't occur if the file
extension is in the legal or ignored file extensions list however that
clearly isn't the case.
One thing to try is to ensure you do it as a super administrator as
some of the checks are bypassed for admins (e.g. if you can install an
extension you don't need to be prevented uploading a otherwise
legitimate looking file even if the sniffers don't think the mime type
is a match). This check should be immune to that override however but
it might be worth a try if you haven't done it already.
Cheers,
Sam Moffatt
http://pasamio.id.au
Sam Moffatt
http://pasamio.id.au
Sam Moffatt
http://pasamio.id.au