Closed medivh-jay closed 3 years ago
Imagine that you have 2 users and they has opened access to the file "a.jpg". Which one file will be selected when you will follow the link?
I'm agree with @GeneriumMadness, there maybe can add an admin setting like Sharingpath copy prefix
for the host part https://oss.domian.com
, but can not ignore the username
.
Or you can add an nginx(apache...) rewrite rule for some special user. @medivh-jay
Yes, I did use nginx rewrite, because I think this setting belongs to the user setting, not the system setting. If multiple users use it, they can choose to perform their own nginx rewrite operation on their own path containing the username.
@medivh-jay Got it, will do.
Thank you very much for your contribution
@medivh-jay v0.4.0 - nightly Please take a look.
@rookie0 AWESOME! Thank you very much for your changes to this feature. this provides great convenience.
Expect to add a setting function to replace
https://youre-domain/nextcloud/apps/sharingpath/username/
when copying, For example,https://youre-domain/nextcloud/apps/sharingpath/username/a.jpg
, after the custom prefix ishttps://oss.domian.com/
, the copied path ishttps://oss.domian.com/a.jpg