Skip to content

Commit

Permalink
fix file len
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexeyzem committed Dec 20, 2024
1 parent 529c84b commit eae6f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fileService/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (fc *FileController) Download(w http.ResponseWriter, r *http.Request) {
url, err = fc.fileService.Download(r.Context(), buf, format)
} else {
name := header.Filename
if len([]rune(name+format)) > 55 {
if len([]rune(name+format)) > 53 {
fc.responder.ErrorBadRequest(w, errors.New("file name is too big"), reqID)
return
}
Expand Down

0 comments on commit eae6f4e

Please sign in to comment.