when try to attach /open/download some files the size reported is 0 and the task fail
I made a small change in webdav_file_storage.php using the existing code in file_info() function
mbadici | |
Mar 5 2018, 11:25 AM |
F2602555: webdav_file_storage.diff | |
Mar 5 2018, 11:25 AM |
when try to attach /open/download some files the size reported is 0 and the task fail
I made a small change in webdav_file_storage.php using the existing code in file_info() function
So, your webdav server does not return Content-Length or the http client code is buggy? Did you try to log response headers ($response['headers'])?
I didn't logged the $response, good point. The server is returning the header but I think the format is different.
I wrote the $response in the log and content-lenght is an array:
'content-length' => array ( 0 => '20480', ),
Looks like the fix in https://git.kolab.org/rC3b776f3a10e2443c0e47d331333265f9c75d7392 wasn't correct. We need to just support both cases.