Skip to content
Commit 11f76b29 authored by Vincent Petry's avatar Vincent Petry
Browse files

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.
parent bd144efe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment