Files: presigned url

This commit is contained in:
pavelbannov 2021-08-11 18:04:23 +03:00
parent e66f1f31bf
commit d19c16565d
2 changed files with 17 additions and 0 deletions

View File

@ -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>

View File

@ -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);