How to Upgrade to IT Hit WebDAV Client API 1.1
Some WebDAV servers require client to buffer data on a client side while others does not. In version 1.0 client-side buffering was turned off for file uploads. For best compatibility with any WebDAV servers now data is buffered on a client side by default.
When migrating from version 1.0 make sure you set timeout and turn-off buffering before large files upload:
IResource resource = folder.CreateResource("products.xlsx");
resource.AllowWriteStreamBuffering = false;
resource.TimeOut = 36000000; // 10 hours
resource.Upload("C:\\products.xlsx");
This will allow upload of files of any size as no data will be kept in memory.
See Uploading and Downloading Files for more details.
|