nextcloud/lib/private/Preview/Postscript.php
Ferdinand Thiessen 4b015568fc test(preview): properly test postscript preview provider
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-01-28 01:09:27 +01:00

25 lines
496 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OC\Preview;
//.eps
class Postscript extends Bitmap {
/**
* {@inheritDoc}
*/
public function getMimeType(): string {
return '/application\/postscript/';
}
/**
* {@inheritDoc}
*/
protected function getAllowedMimeTypes(): string {
return '/(application\/postscript|image\/x-eps)/';
}
}