Example #1
0
 public override FileUploader CreateUploader(UploadersConfig uploadersConfig)
 {
     return(new Dropbox(uploadersConfig.DropboxOAuth2Info, uploadersConfig.DropboxAccountInfo)
     {
         UploadPath = NameParser.Parse(NameParserType.URL, Dropbox.TidyUploadPath(uploadersConfig.DropboxUploadPath)),
         AutoCreateShareableLink = uploadersConfig.DropboxAutoCreateShareableLink,
         ShareURLType = uploadersConfig.DropboxURLType
     });
 }
Example #2
0
 public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo)
 {
     return new Dropbox(config.DropboxOAuth2Info, config.DropboxAccountInfo)
     {
         UploadPath = NameParser.Parse(NameParserType.URL, Dropbox.TidyUploadPath(config.DropboxUploadPath)),
         AutoCreateShareableLink = config.DropboxAutoCreateShareableLink,
         ShareURLType = config.DropboxURLType
     };
 }