Forums

Error when uploading video (4 posts)

  1. fiddlah
    Member
    Posted 2 years ago #

    Im am continually receiving this message when I try to email my blog a video...(this is not happening with post or pictures..
    Can someone please help...
    I'm new at setup for this wordpress blog...so any suggestions would be welcome
    thanks
    ric

    PS...the error message is in bold print below..
    ==================================================================
    Connecting to mail.myserver.com:110 (pop3))- have configured true sever..just not showing it here)
    Mission complete, message 1 deleted.
    memory at start of e-mail processing:21244848
    Confirming Access For smith2614@anymail.com

    Message Id is :<778545433-1265481957-cardhu_decombobulator_blackberry.rim.net-72942473-@bda515.bisx.prod.on.blackberry>

    Email has following attachments:
    the id is 184
    primary= multipart, secondary = mixed
    primary= text, secondary = plain
    primary= application, secondary = octet-stream
    wrote to temp file
    Array
    (
    [name] => test video.3GP
    [tmp_name] => /var/tmp/postieTUGfi1
    [size] => 246643
    [error] =>
    )
    finished postie_handle_upload
    Array
    (
    [error] => File type does not meet security guidelines. Try another.
    )
    file=
    the content is
    ---
    Sent from my BlackBerry

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    Try contacting your email/hosting provider.

  3. Mark / t31os
    Moderator
    Posted 2 years ago #

    The message above is from the following code in wp-admin/includes/file.php

    if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) )
    			return $upload_error_handler( $file, __( 'File type does not meet security guidelines. Try another.' ));

    Which would suggest that you're using an invalid type or extension, or in other words, you've not added that type of extension or file type to the whitelist for upload media.

    I was going to provide a codex link for a list of default mime types, but i can't find one, so here's the list straight from the core..

    'jpg|jpeg|jpe' => 'image/jpeg',
    'gif' => 'image/gif',
    'png' => 'image/png',
    'bmp' => 'image/bmp',
    'tif|tiff' => 'image/tiff',
    'ico' => 'image/x-icon',
    'asf|asx|wax|wmv|wmx' => 'video/asf',
    'avi' => 'video/avi',
    'divx' => 'video/divx',
    'flv' => 'video/x-flv',
    'mov|qt' => 'video/quicktime',
    'mpeg|mpg|mpe' => 'video/mpeg',
    'txt|asc|c|cc|h' => 'text/plain',
    'rtx' => 'text/richtext',
    'css' => 'text/css',
    'htm|html' => 'text/html',
    'mp3|m4a' => 'audio/mpeg',
    'mp4|m4v' => 'video/mp4',
    'ra|ram' => 'audio/x-realaudio',
    'wav' => 'audio/wav',
    'ogg' => 'audio/ogg',
    'mid|midi' => 'audio/midi',
    'wma' => 'audio/wma',
    'mka' => 'audio/x-matroska',
    'mkv' => 'video/x-matroska',
    'rtf' => 'application/rtf',
    'js' => 'application/javascript',
    'pdf' => 'application/pdf',
    'doc|docx' => 'application/msword',
    'pot|pps|ppt|pptx|ppam|pptm|sldm|ppsm|potm' => 'application/vnd.ms-powerpoint',
    'wri' => 'application/vnd.ms-write',
    'xla|xls|xlsx|xlt|xlw|xlam|xlsb|xlsm|xltm' => 'application/vnd.ms-excel',
    'mdb' => 'application/vnd.ms-access',
    'mpp' => 'application/vnd.ms-project',
    'docm|dotm' => 'application/vnd.ms-word',
    'pptx|sldx|ppsx|potx' => 'application/vnd.openxmlformats-officedocument.presentationml',
    'xlsx|xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml',
    'docx|dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml',
    'onetoc|onetoc2|onetmp|onepkg' => 'application/onenote',
    'swf' => 'application/x-shockwave-flash',
    'class' => 'application/java',
    'tar' => 'application/x-tar',
    'zip' => 'application/zip',
    'gz|gzip' => 'application/x-gzip',
    'exe' => 'application/x-msdownload',
    // openoffice formats
    'odt' => 'application/vnd.oasis.opendocument.text',
    'odp' => 'application/vnd.oasis.opendocument.presentation',
    'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
    'odg' => 'application/vnd.oasis.opendocument.graphics',
    'odc' => 'application/vnd.oasis.opendocument.chart',
    'odb' => 'application/vnd.oasis.opendocument.database',
    'odf' => 'application/vnd.oasis.opendocument.formula',

    Which as you can see does not provide .3GP as a media type..

    There are a few options, add the extension with a filter yourself, or use a mime type plugin to add any additional media types you require.

    One such plugin can be found here.
    http://wordpress.org/extend/plugins/pjw-mime-config/

  4. fiddlah
    Member
    Posted 2 years ago #

    Thanks to all for your help....Being new to this I will give it my best shot...
    Ric

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.