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