Files: presigned url
This commit is contained in:
parent
e66f1f31bf
commit
d19c16565d
@ -1443,6 +1443,18 @@ namespace ASC.Api.Documents
|
||||
return FilesControllerHelperInt.GetFileVersionInfo(fileId);
|
||||
}
|
||||
|
||||
[Read("file/{fileId}/presigned")]
|
||||
public DocumentService.FileLink GetPresignedUri(string fileId)
|
||||
{
|
||||
return FilesControllerHelperString.GetPresignedUri(fileId);
|
||||
}
|
||||
|
||||
[Read("file/{fileId:int}/presigned")]
|
||||
public DocumentService.FileLink GetPresignedUri(int fileId)
|
||||
{
|
||||
return FilesControllerHelperInt.GetPresignedUri(fileId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Change version history
|
||||
/// </summary>
|
||||
|
@ -508,6 +508,11 @@ namespace ASC.Files.Helpers
|
||||
return FileWrapperHelper.Get(result);
|
||||
}
|
||||
|
||||
public DocumentService.FileLink GetPresignedUri(T fileId)
|
||||
{
|
||||
return FileStorageService.GetPresignedUri(fileId);
|
||||
}
|
||||
|
||||
public string UpdateComment(T fileId, int version, string comment)
|
||||
{
|
||||
return FileStorageService.UpdateComment(fileId, version, comment);
|
||||
|
Loading…
Reference in New Issue
Block a user