diff --git a/pkg/svg/storage.go b/pkg/svg/storage.go index 343106b..fef8cd4 100644 --- a/pkg/svg/storage.go +++ b/pkg/svg/storage.go @@ -6,6 +6,7 @@ import ( "net/http" "os" "path/filepath" + "strings" ) type SvgStorage interface { @@ -69,7 +70,7 @@ func (f FileSvgStorage) CreatePublic(data io.Reader, filetype string) (string, e } defer file.Close() - return file.Name(), nil + return strings.TrimPrefix(file.Name(), path), nil } func (f FileSvgStorage) GetPublic(path string) (io.ReadCloser, error) {