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

[feature request] Copy direct link to the image #51

Open
itsP33t opened this issue Dec 26, 2023 · 4 comments
Open

[feature request] Copy direct link to the image #51

itsP33t opened this issue Dec 26, 2023 · 4 comments

Comments

@itsP33t
Copy link

itsP33t commented Dec 26, 2023

I use r2-explorer to upload my files and then i get the direct link so i can put it on websites i create. It would be very helpful to get the option to copy the direct link.

If i want to do this, i need to upload it using r2-explorer and then either go to cloudflare dash and find the link or just add the file name after my cdn domain

@jasonbayton
Copy link

This! Please bring in the URLs offered by R2 directly, I will never link to the file in explorer because it's my admin portal for easier file management rather than a public service.

@G4brym
Copy link
Owner

G4brym commented Mar 7, 2024

The problem with this, is that r2-explorer doesn't know the public url for your bucket like https://pub-asdasdasdasd.r2.dev
So the only option here is to either you manually define the public url for each bucket in your index.ts or the link to image will link to r2 explorer api do directly download the image

@jasonbayton
Copy link

I'd be more than happy defining it if that was an option honestly. That's a super low-effort requirement.

@G4brym
Copy link
Owner

G4brym commented Mar 7, 2024

Ok, i try to do this soon

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

3 participants