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

Commit 1b113ca

Browse files
authored
Merge pull request #66 from VladPetriv/fix/change-argument-to-avoid-errors
fix(storage/upload): change arguments in ext to avoid error in ui
2 parents d396c9d + a794c81 commit 1b113ca

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)