WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] File Type does not meet Security Guidelines (9 posts)

  1. g3bbonsj
    Member
    Posted 8 years ago #

    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.

    Thanks,

    JG

  2. schestowitz
    Member
    Posted 8 years ago #

    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.

  3. g3bbonsj
    Member
    Posted 8 years ago #

    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 ;)

  4. schestowitz
    Member
    Posted 8 years ago #

    [sarcasm] be gentle with WP2.0 because it's fragile. Glad this helped solve your problem...

  5. g3bbonsj
    Member
    Posted 8 years ago #

    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.

  6. skeltoac
    Member
    Posted 8 years ago #

    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.

  7. g3bbonsj
    Member
    Posted 8 years ago #

    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!

  8. gwynap
    Member
    Posted 8 years ago #

    Is there any way you can allow uploading of ANY filetype?

  9. matthewpoer
    Member
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.