Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
84420035
Commit
84420035
authored
12 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
throwing InsufficientStorage in case the quota is reached
parent
b8b64d6f
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/connector/sabre/quotaplugin.php
+1
-1
1 addition, 1 deletion
lib/connector/sabre/quotaplugin.php
with
1 addition
and
1 deletion
lib/connector/sabre/quotaplugin.php
+
1
−
1
View file @
84420035
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment