Skip to content
Snippets Groups Projects
Commit 4018ba06 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #847 from owncloud/webdav-quota-fix-exception

throwing InsufficientStorage in case the quota is reached
parents b8b64d6f 84420035
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
}
list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
if ($length > OC_Filesystem::free_space($parentUri)) {
throw new Sabre_DAV_Exception('Quota exceeded. File is too big.');
throw new Sabre_DAV_Exception_InsufficientStorage();
}
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment