summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/amazons3.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-10-13 16:44:01 +0200
committerVincent Petry <pvince81@owncloud.com>2015-10-13 16:44:01 +0200
commit915d37f226e107c86a04ad6a8b985440c6dee34a (patch)
tree46e0bfa12119a257e776bea041e73a1bc0acdc78 /apps/files_external/lib/amazons3.php
parent3891cd9068596481cf1717e9b1a5bcae1cc0ce09 (diff)
downloadnextcloud-server-915d37f226e107c86a04ad6a8b985440c6dee34a.tar.gz
nextcloud-server-915d37f226e107c86a04ad6a8b985440c6dee34a.zip
Fallback to default mimetype detection mechanism
Diffstat (limited to 'apps/files_external/lib/amazons3.php')
-rw-r--r--apps/files_external/lib/amazons3.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index 00915140bab..4b867c005a7 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -418,27 +418,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
return false;
}
- public function getMimeType($path) {
- $path = $this->normalizePath($path);
-
- if ($this->is_dir($path)) {
- return 'httpd/unix-directory';
- } else if ($this->file_exists($path)) {
- try {
- $result = $this->getConnection()->headObject(array(
- 'Bucket' => $this->bucket,
- 'Key' => $path
- ));
- } catch (S3Exception $e) {
- \OCP\Util::logException('files_external', $e);
- return false;
- }
-
- return $result['ContentType'];
- }
- return false;
- }
-
public function touch($path, $mtime = null) {
$path = $this->normalizePath($path);