payload-tenancy: Upload collection do not respect 'path' strategy

The link/image displayed in upload collections do not respect the ‘path’ strategy of this plugin.

Dashboard shows link/image for mydomain.com/myfolder/myimage.jpg when it should be mydomain.com/mytenant/myfolder/myimage.jpg

Screenshot 2023-08-24 at 18 02 02

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

It works only with media collection but doesn’t work for other collections with upload enabled tested on latest version of both payloadv2 and the lib

It seems to me based on your findings the problem is that the hook this plugin is using, is not getting called more than once per request. I’ll take a look more closely on few coming days.

Fixed file URLs to include server URL in version 1.1.2