[wp-hackers] Help with mime types

wpmidia lab wpmidia at gmail.com
Fri Feb 24 14:02:17 UTC 2012


Hi Dion.

Really sorry my mistake!

I replaced *flash *with *swf *and it works now!

Very thank you! =)




2012/2/24 Dion Hulse (dd32) <wordpress at dd32.id.au>

> You'll need to make the swf filetype to the mime as well, how you do
> that, i'm not sure off the top of my head.
> it might just mean replacing 'flash' with 'swf' in the below code, or
> it might be another filter.
> Eitherway, check out this plugin:
> http://wordpress.org/extend/plugins/pjw-mime-config/ (at least for the
> hooks it uses)
>
> On 25 February 2012 00:40, wpmidia lab <wpmidia at gmail.com> wrote:
> > Hello people!
> >
> > I need to allow *.SWF* file upload in my WordPress instalation for my
> > banners system.
> >
> > I have tried this (without success):
> >
> > function new_mime_types($mimes) {
> >    if( ! isset( $mimes['flash'] ) ) $mimes['flash'] = 'application/
> > x-shockwave-flash';
> >
> >    return $mimes;
> > }
> >
> > add_filter('upload_mimes', 'new_mime_types');
> >
> > Somebody can help me?
> >
> >
> > Thanks! =)
> >
> > --
> > *Míriam de Paula *
> > *(a.k.a. Drika)*
> > *Twitter:* @miriamdepaula
> >
> > wp*midia*
> > *desenvolvimento web*
> > http://wpmidia.com.br
> > twitter: @wpmidia
> >
> > *WordPress Brasil no Facebook: *
> > http://www.facebook.com/groups/wordpress.brasil
> >
> > *OpenCart Brasil no Facebook:*
> > http://www.facebook.com/groups/opencart.brasil/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
*Míriam de Paula *
*(a.k.a. Drika)*
*Twitter:* @miriamdepaula

wp*midia*
*desenvolvimento web*
http://wpmidia.com.br
twitter: @wpmidia

*WordPress Brasil no Facebook: *
http://www.facebook.com/groups/wordpress.brasil

*OpenCart Brasil no Facebook:*
http://www.facebook.com/groups/opencart.brasil/


More information about the wp-hackers mailing list