Request to build attachments' link with unified format #6961
Labels
area/core
Issues or PRs related to the Halo Core
kind/feature
Categorizes issue or PR as related to a new feature.
Your current Halo version
2.20.7
Describe this feature
Currently, if we upload a file into S3 bucket with private read permission, the object cannot be accessed directly. We have to build a presigned URL to share the object, but the URL has expiration. So we cannot put the presigned URL into attachment permalink.
If we set the attachment permalink like <http://localhost:8090/attachments/{attachment.metadata.name}/{attachment.spec.displayName} and redirect to presigned URL when accessing the permalink, the problem will be resolved.
References
halo/api/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentHandler.java
Line 31 in 25086ee
Additional information
/kind feature
/area core
The text was updated successfully, but these errors were encountered: