31,33d30 < // comment by Mihai Badici mihai@badici.ro < // this didn't worked on my system, should be adjusted according to sabre location < 35,38d31 < < < < 421,435d413 < < // added by Mihai Badici mihai@badici.ro < // copied from file_info() < // use DAV library to get file size < // We use only $size from here but maybe we will need other infos too (contenttype?) < $props = $this->client->propfind($this->encode_path($file_name), array( < '{DAV:}resourcetype', < '{DAV:}getcontentlength', < '{DAV:}getcontenttype', < '{DAV:}getlastmodified', < '{DAV:}creationdate' < ), 0); < $size = (int) $props['{DAV:}getcontentlength']; < < 443,445c421 < // added by Mihai Badici mihai@badici.ro < // this line is not working, it returns $size=0 < // $size = $response['headers']['content-length']; --- > $size = $response['headers']['content-length']; 467d442 < // header("Content-Type: application/octet-stream"); 469,470d443 < <