diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-07 10:58:24 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-07 11:01:24 +0100 |
commit | 89881ed5118f282bd3a93fe2dd092a296f17d2dc (patch) | |
tree | 666441039990d0d9f6c62d5dd2bbad1fd3ade752 /apps/files/js | |
parent | c07b731689de6fe754e108688ccf71342aad95ef (diff) | |
download | nextcloud-server-89881ed5118f282bd3a93fe2dd092a296f17d2dc.tar.gz nextcloud-server-89881ed5118f282bd3a93fe2dd092a296f17d2dc.zip |
Fix call to disk_free_space when a file is provided
In the case of shared files, we have to call free_space() on the file
name. This has the side-effect that when uploading to a local storage
without quota set, it will call disk_free_space with the file name,
which fails.
This fix uses the parent folder in case the given path is a file.
Diffstat (limited to 'apps/files/js')
0 files changed, 0 insertions, 0 deletions