2014-11-28 03:25:40 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2014-11-28 03:25:40 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-11-28 03:25:40 -05:00
|
|
|
*/
|
|
|
|
|
namespace OC\Preview;
|
|
|
|
|
|
|
|
|
|
//.eps
|
|
|
|
|
class Postscript extends Bitmap {
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
2019-06-04 09:25:25 -04:00
|
|
|
public function getMimeType(): string {
|
2014-11-28 03:25:40 -05:00
|
|
|
return '/application\/postscript/';
|
|
|
|
|
}
|
2024-04-07 22:10:19 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
|
|
|
|
protected function getAllowedMimeTypes(): string {
|
2026-01-27 17:42:02 -05:00
|
|
|
return '/(application\/postscript|image\/x-eps)/';
|
2024-04-07 22:10:19 -04:00
|
|
|
}
|
2014-11-28 03:25:40 -05:00
|
|
|
}
|