🐛 Fix open files with storage id
This commit is contained in:
parent
8e8a120a90
commit
c3390d7248
@ -31,7 +31,7 @@ public class FileController(
|
|||||||
}
|
}
|
||||||
|
|
||||||
var dest = fs.GetRemoteStorageConfig(file.UploadedTo);
|
var dest = fs.GetRemoteStorageConfig(file.UploadedTo);
|
||||||
var fileName = file.StorageId;
|
var fileName = string.IsNullOrWhiteSpace(file.StorageId) ? file.Id : file.StorageId;
|
||||||
|
|
||||||
if (!original && file.HasCompression)
|
if (!original && file.HasCompression)
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ public class FileController(
|
|||||||
var openUrl = await client.PresignedGetObjectAsync(
|
var openUrl = await client.PresignedGetObjectAsync(
|
||||||
new PresignedGetObjectArgs()
|
new PresignedGetObjectArgs()
|
||||||
.WithBucket(bucket)
|
.WithBucket(bucket)
|
||||||
.WithObject(file.Id)
|
.WithObject(fileName)
|
||||||
.WithExpiry(3600)
|
.WithExpiry(3600)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user