Skip to content

Commit

Permalink
create new file by path as long as not all storage providers support …
Browse files Browse the repository at this point in the history
…relative paths
  • Loading branch information
wkloucek committed Dec 9, 2021
1 parent 3e0c043 commit 850506a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/http/services/appprovider/appprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ func (s *svc) handleNew(w http.ResponseWriter, r *http.Request) {
}

fileRef := &provider.Reference{
ResourceId: parentContainer.Info.Id,
Path: utils.MakeRelativePath(filename),
Path: path.Join(parentContainer.Info.Path, utils.MakeRelativePath(filename)),
// TODO: switch to a relative reference as soon as all storage providers support this
// ResourceId: parentContainer.Info.Id,
// Path: utils.MakeRelativePath(filename),
}

statFileReq := &provider.StatRequest{
Expand Down

0 comments on commit 850506a

Please sign in to comment.