It might be because of a file lock introduced in Moodle 2.5
"Cannot upload files in certain cloud hosting environments" - https://tracker.moodle.org/browse/MDL-43390
The above was mentioned in "Can not create local file pool file, please verify permissions in dataroot and available disk space" - https://tracker.moodle.org/browse/MDL-43160