Línea 625... |
Línea 625... |
625 |
//echo '$mime_type = '. $mime_type; exit;
|
625 |
//echo '$mime_type = '. $mime_type; exit;
|
Línea 626... |
Línea 626... |
626 |
|
626 |
|
627 |
|
627 |
|
628 |
if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
628 |
if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
629 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
629 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
630 |
} else if ($mime_type == 'video/quick-time' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
630 |
} else if ($mime_type == 'video/quicktime' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
631 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
631 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
632 |
} else if ($mime_type == 'application/pdf') {
|
632 |
} else if ($mime_type == 'application/pdf') {
|
633 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|
633 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|
Línea 645... |
Línea 645... |
645 |
$mime_type = mime_content_type($feed_tmp_filename);
|
645 |
$mime_type = mime_content_type($feed_tmp_filename);
|
Línea 646... |
Línea 646... |
646 |
|
646 |
|
647 |
|
647 |
|
648 |
if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
648 |
if ($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
649 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
649 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
650 |
} else if ($mime_type == 'video/quick-time' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
650 |
} else if ($mime_type == 'video/quicktime' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
651 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
651 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
652 |
} else if ($mime_type == 'application/pdf') {
|
652 |
} else if ($mime_type == 'application/pdf') {
|
653 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|
653 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|