Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Preview/Office.php')
-rw-r--r--lib/Preview/Office.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Preview/Office.php b/lib/Preview/Office.php
index a94f8a6c..d80c83cc 100644
--- a/lib/Preview/Office.php
+++ b/lib/Preview/Office.php
@@ -67,11 +67,7 @@ abstract class Office extends Provider {
$options['verify'] = false;
}
- if (version_compare($this->config->getSystemValue('version'), '14.0.0.0', '<')) {
- $options['body'] = new \GuzzleHttp\Post\PostFile($path, $stream); // Since we upgraded guzzle in NC14 we have to do some dark magic here
- } else {
- $options['multipart'] = [['name' => $path, 'contents' => $stream]];
- }
+ $options['multipart'] = [['name' => $path, 'contents' => $stream]];
try {
$response = $client->post($this->getWopiURL(). '/lool/convert-to/png', $options);