Thank you for the response, but for some reason, I'm unable to get this working.
Essentially, it makes sense to me that you either provide the BUCKET and FILENAME, but not the PATH.
OR
You provide the full path without the bucket name and filename.
What am I missing?
Error Message: Invalid Location string.
Here's what I've got:
var fileName = "somefile.pdf;
var relativePath = "sub-folder/another-sub-folder";
var path = $"{BUCKET_NAME}/{relativePath}/{fileName}";
var documentViewer = new DocumentViewer
{
Width = 800,
Height = 600,
Resizable = true,
Document = new FileSystemFileProvider
{
File = fileName,
Location = new AmazonS3Location
{
Path = path,
Region = "eu-central-1",
AccessKeyId = Settings.Default.AwsAccessKey,
SecretAccessKey = Settings.Default.AwsSecretAccessKey
}
}
};