Page MenuHomePhorge

webdav_file_storage.diff

Authored By
mbadici
Mar 5 2018, 11:22 AM
Size
1 KB
Referenced Files
None
Subscribers
None

webdav_file_storage.diff

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
<
<

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1262128
Default Alt Text
webdav_file_storage.diff (1 KB)

Event Timeline