summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-05-22 11:37:11 +0200
committerVincent Petry <pvince81@owncloud.com>2015-05-22 11:37:11 +0200
commitb82d902e184960877110bc45124ed2399f779cac (patch)
tree21edd9ad770b268687044ff8cbffc440e0233e5c /lib
parentd7b2bc9e2faa29cb7862e4d9aa2ffa98846f7298 (diff)
parent22968e806c9e71355875bc1e44908110c3960f79 (diff)
downloadnextcloud-server-b82d902e184960877110bc45124ed2399f779cac.tar.gz
nextcloud-server-b82d902e184960877110bc45124ed2399f779cac.zip
Merge pull request #16493 from owncloud/cache-movewithcorrectmimetype
Get correct mimetype when moving and changing extension
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/updater.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 7df223eb037..193ddbedb2c 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -182,7 +182,7 @@ class Updater {
if (pathinfo($sourceInternalPath, PATHINFO_EXTENSION) !== pathinfo($targetInternalPath, PATHINFO_EXTENSION)) {
// handle mime type change
- $mimeType = $sourceStorage->getMimeType($targetInternalPath);
+ $mimeType = $targetStorage->getMimeType($targetInternalPath);
$fileId = $targetCache->getId($targetInternalPath);
$targetCache->update($fileId, array('mimetype' => $mimeType));
}