Set to media type on upload. Music being default.
This commit is contained in:
parent
d5b04b30cc
commit
3338e9289a
5 changed files with 84 additions and 2 deletions
|
@ -349,4 +349,20 @@ class FileDataHelper {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Media Type
|
||||
*
|
||||
* @return string Media type key value
|
||||
*/
|
||||
public static function saveMediaType()
|
||||
{
|
||||
if (isset($_COOKIE['mt_upload'])) {
|
||||
$mt = $_COOKIE['mt_upload'];
|
||||
} else {
|
||||
// Use default media type
|
||||
$mt = "MUS";
|
||||
}
|
||||
return $mt;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue