diff options
author | Piotr Filiciak <piotr@filiciak.pl> | 2016-05-20 18:16:44 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-20 18:16:44 +0200 |
commit | 9999e05660637c77947c71656d2f03d841e19ab9 (patch) | |
tree | 3eac375c092a2013e7d9fdb6be8d0f74d298defd /lib/public | |
parent | 59a85a4c76b80658d9373e3acf4f71b872b244a0 (diff) | |
download | nextcloud-server-9999e05660637c77947c71656d2f03d841e19ab9.tar.gz nextcloud-server-9999e05660637c77947c71656d2f03d841e19ab9.zip |
Http Range requests support in downloads
Http range requests support is required for video preview
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/UnseekableException.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/public/Files/UnseekableException.php b/lib/public/Files/UnseekableException.php new file mode 100644 index 00000000000..fda93697690 --- /dev/null +++ b/lib/public/Files/UnseekableException.php @@ -0,0 +1,34 @@ +<?php +/** + * @author Piotr Filiciak <piotr@filiciak.pl> + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see <http://www.gnu.org/licenses/> + * + */ + +/** + * Public interface of ownCloud for apps to use. + * Files/UnseekableException class + */ + +// use OCP namespace for all classes that are considered public. +// This means that they should be used by apps instead of the internal ownCloud classes +namespace OCP\Files; + +/** + * Exception for seek problem + */ +class UnseekableException extends \Exception {} |