mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Map empty mimetypes to octet-stream for Oracle DBMS.
This commit is contained in:
parent
fa6ae81149
commit
b3e39dd3d9
1 changed files with 4 additions and 0 deletions
4
lib/private/files/cache/cache.php
vendored
4
lib/private/files/cache/cache.php
vendored
|
|
@ -64,6 +64,10 @@ class Cache {
|
|||
* @return int
|
||||
*/
|
||||
public function getMimetypeId($mime) {
|
||||
if (empty($mime)) {
|
||||
// Can not insert empty string into Oracle NOT NULL column.
|
||||
$mime = 'application/octet-stream';
|
||||
}
|
||||
if (empty(self::$mimetypeIds)) {
|
||||
$this->loadMimetypes();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue