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

throwing InsufficientStorage in case the quota is reached

parent b8b64d6f
Loading
......@@ -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.
Please register or to comment