Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sevensolutions committed Oct 15, 2024
1 parent d0e39f7 commit b4648c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/localAdapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (a *LocalDirectoryAdapter) Upload(ctx context.Context, spec core.ArtifactVe
}

err = saveMeta(metaPath, core.BlobMeta{
OriginalFilename: echo.Request().URL.Query().Get("filename"),
OriginalFilename: echo.Param("filename"),
ContentType: contentType,
Hash: hash,
})
Expand All @@ -98,7 +98,7 @@ func (a *LocalDirectoryAdapter) Download(ctx context.Context, spec core.Artifact

filename := meta.OriginalFilename

requestedFilename := target.Request().URL.Query().Get("filename")
requestedFilename := target.Param("filename")

if requestedFilename != "" {
filename = requestedFilename
Expand Down

0 comments on commit b4648c1

Please sign in to comment.