Products | Versions |
---|---|
Spotfire Statistics Services | All Versions |
The default timeout value for the WebDav.UploadFile() in WebdavApiClient for TIBCO Spotfire Statistics Services (TSSS) API is about 1000000 ms, or around 17 minutes and this default value cannot be changed. Hence when uploading large files to TSSS server this timeout value may be reached and an timeout error may be raised.
using Independentsoft.Webdav;3. Add the following static function (may need some modification as per your requirement) to C# source code and use it to perform the uploadFile operation:
public static void UploadFile(string url, string filePath, string userName="", string password="") { NetworkCredential credential = new NetworkCredential(userName, password, String.Empty); WebdavSession session = new WebdavSession(credential); Resource res = new Resource(session); res.Timeout = 2000000; res.Upload(url, filePath); }