Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16769 | Rev 16979 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16769 Rev 16822
Línea 806... Línea 806...
806
                    $mime_type = mime_content_type($message_tmp_filename);
806
                    $mime_type = mime_content_type($message_tmp_filename);
Línea 807... Línea 807...
807
 
807
 
808
 
808
 
809
                    if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
809
                    if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
810
                        $type = Message::TYPE_IMAGE;
810
                        $type = Message::TYPE_IMAGE;
811
                    } else if ($mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
811
                    } else if ($mime_type == 'video/quicktime' ||  $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
812
                        $type = Message::TYPE_VIDEO;
812
                        $type = Message::TYPE_VIDEO;
813
                    } else if ($mime_type == 'application/pdf') {
813
                    } else if ($mime_type == 'application/pdf') {
814
                        $type = Message::TYPE_DOCUMENT;
814
                        $type = Message::TYPE_DOCUMENT;