Thanks a lot Glen,
could you possibly insert the following lines in "lib/filestorage/file_storage.php" at line 935, just BEFORE "return $this->create_file_from_string($filerecord, $content)":
if (is_object($content) && isset($content->error)) {
print_object($content);
throw new moodle_exception($content->error);
}
Then please re-run the upgrade and let me know the new error message.
thanks
Gordon