Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2602555
webdav_file_storage.diff
mbadici (Mihai Badici)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
mbadici
Mar 5 2018, 11:22 AM
2018-03-05 11:22:28 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
webdav_file_storage.diff
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1262128
Default Alt Text
webdav_file_storage.diff (1 KB)
Attached To
Mode
T3757: webdav driver not working
Attached
Detach File
Event Timeline
Log In to Comment