Línea 768... |
Línea 768... |
768 |
$feed_filename = $this->normalizeString($files['file']['name']);
|
768 |
$feed_filename = $this->normalizeString($files['file']['name']);
|
Línea 769... |
Línea 769... |
769 |
|
769 |
|
770 |
$mime_type = mime_content_type($feed_tmp_filename);
|
770 |
$mime_type = mime_content_type($feed_tmp_filename);
|
771 |
if($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
771 |
if($mime_type == 'image/jpg' || $mime_type == 'image/jpeg' || $mime_type == 'image/png') {
|
772 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
772 |
$file_type = Feed::FILE_TYPE_IMAGE;
|
773 |
} else if($mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
773 |
} else if($mime_type == 'video/quicktime' || $mime_type == 'video/webm' || $mime_type == 'video/mpeg' || $mime_type == 'video/mpg' || $mime_type == 'video/mp4') {
|
774 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
774 |
$file_type = Feed::FILE_TYPE_VIDEO;
|
775 |
} else if($mime_type == 'application/pdf') {
|
775 |
} else if($mime_type == 'application/pdf') {
|
776 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|
776 |
$file_type = Feed::FILE_TYPE_DOCUMENT;
|
777 |
}
|
777 |
}
|