G4brym / R2-Explorer

A Google Drive Interface for your Cloudflare R2 Buckets!
https://r2explorer.dev
MIT License
329 stars 60 forks source link

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

Open itsP33t opened 10 months ago

itsP33t commented 10 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

G4brym commented 8 months ago

Ok, i try to do this soon