public FTPProviderController(IHostingEnvironment hostingEnvironment)
{
this.operation = new FTPFileProvider();
//Specify the FTP hostname, username and password
} |
public AmazonS3ProviderController(IHostingEnvironment hostingEnvironment)
{
this.basePath = hostingEnvironment.ContentRootPath;
this.operation = new AmazonS3FileProvider();
this.operation.RegisterAmazonS3("<---bucketName--->", "<---awsAccessKeyId--->", "<---awsSecretAccessKey--->", "<---region--->");
} |