Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The getObjectUrl method has been deleted in 8.0. How can I get a URL address that does not expire? #1105

Closed
4714407 opened this issue Nov 8, 2020 · 3 comments

Comments

@4714407
Copy link

4714407 commented Nov 8, 2020

The getObjectUrl method has been deleted in 8.0. How can I get a URL address that does not expire?

@balamurugana
Copy link
Member

We do not support any utility functions like getObjectUrl() any more. You have two tricks to do that

  • Create MinioClient object without credentials (anonymous client) and use getPresignedObjectUrl()
    (or)
  • Inherit MinioClient and use buildUrl()

@4714407
Copy link
Author

4714407 commented Nov 8, 2020

How to use getPresignedObjectUrl() to achieve non expiration?

@balamurugana
Copy link
Member

With no credentials there is no pre-signing hence the URL looks like value returned like old getObjectUrl()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants