Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Commit a794c81

Browse files
authored
fix: change arguments in ext to avoid error
1 parent 53e3021 commit a794c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type SavedFile struct {
3232
// Save saves a file content to the file storage (Storer interface) and to the
3333
// database
3434
func (f FileStore) Save(filename, name string, file io.ReadSeeker, size int64) (sf SavedFile, err error) {
35-
ext := filepath.Ext(name)
35+
ext := filepath.Ext(filename)
3636

3737
if len(name) == 0 {
3838
// if no forced name is used, let's use the original file name

0 commit comments

Comments
 (0)