Support » Fixing WordPress » File Type does not meet Security Guidelines

  • Resolved g3bbonsj


    I’m trying to upload a .3g2 video file (video clip created
    on my Treo 650) onto my wordpress blog which is hosted on yahoo.

    I get an error that says File Type does not meet Security Guidelines

    Is this a yahoo error or a WordPress error and how do I work around it.

    The file is around 700k.



Viewing 8 replies - 1 through 8 (of 8 total)
  • 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,
    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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘File Type does not meet Security Guidelines’ is closed to new replies.