You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, servers interacting with Finder should use the length from the X-Expected-Entity-Length header. Extracting the estimated size from the X-Expected-Entity-Length header with a fallback to Content-Length works on both Mac and Windows.
The text was updated successfully, but these errors were encountered:
When implementing a custom
FileSystem
(as per https://github.com/OpenMarshal/npm-WebDAV-Server/wiki/Custom-File-System-%5Bv2%5D),_openWriteStream
receives anOpenWriteStreamInfo
that contains the size of the incoming file. On Mac OS, the size in this parameter is -1 because Finder does not provide aContent-Length
header.Instead, servers interacting with Finder should use the length from the
X-Expected-Entity-Length
header. Extracting the estimated size from theX-Expected-Entity-Length
header with a fallback toContent-Length
works on both Mac and Windows.The text was updated successfully, but these errors were encountered: