This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -91,7 +91,7 @@ func (f FileSvgStorage) CreatePublic(data io.Reader, filetype string) (string, e
|
||||
return "", err
|
||||
}
|
||||
|
||||
return strings.TrimPrefix(file.Name(), path), nil
|
||||
return filepath.Base(file.Name()), nil
|
||||
}
|
||||
|
||||
func (f FileSvgStorage) GetPublic(path string) (io.ReadCloser, error) {
|
||||
|
||||
Reference in new issue
Block a user