generated from VLADIMIR/template
fix
This commit is contained in:
@@ -41,11 +41,13 @@ var allowedExtensions = map[string]struct{}{
|
||||
".webm": {},
|
||||
}
|
||||
|
||||
// FileService handles file downloads.
|
||||
type FileService struct {
|
||||
fileStorage file_storage.IFileStorage
|
||||
maxFileSize int
|
||||
}
|
||||
|
||||
// NewFileService creates a file service.
|
||||
func NewFileService(
|
||||
fileStorage file_storage.IFileStorage,
|
||||
maxFileSize int,
|
||||
@@ -149,6 +151,7 @@ func contentTypeCategory(sniffed string) string {
|
||||
}
|
||||
}
|
||||
|
||||
// DownloadFile returns a file for download.
|
||||
func (s *FileService) DownloadFile(
|
||||
ctx context.Context,
|
||||
filename string,
|
||||
|
||||
Reference in New Issue
Block a user