Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16801 Rev 16822
Línea 300... Línea 300...
300
                    $mime_type = mime_content_type($message_tmp_filename);
300
                    $mime_type = mime_content_type($message_tmp_filename);
Línea 301... Línea 301...
301
                    
301
                    
302
                    
302
                    
303
                    if($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
303
                    if($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
304
                        $type = Message::TYPE_IMAGE;
304
                        $type = Message::TYPE_IMAGE;
305
                    } else if($mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
305
                    } else if($mime_type == 'video/quicktime' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
306
                        $type = Message::TYPE_VIDEO;
306
                        $type = Message::TYPE_VIDEO;
307
                    } else if($mime_type == 'application/pdf') {
307
                    } else if($mime_type == 'application/pdf') {
308
                        $type = Message::TYPE_DOCUMENT;
308
                        $type = Message::TYPE_DOCUMENT;