Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Oct 20, 2021
1 parent a1c7710 commit 3a4874c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
s.FileSource = s.ItemSource
switch {
case s.ShareType == conversions.ShareTypePublicLink:
s.FileTarget = info.Path
s.Path = info.Path
s.FileTarget = path.Join("/", path.Base(info.Path))
s.Path = path.Join("/", path.Base(info.Path))
case h.sharePrefix == "/":
s.FileTarget = info.Path
s.Path = info.Path
Expand Down

0 comments on commit 3a4874c

Please sign in to comment.