root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.47k stars 168 forks source link

[Feature Request] allow admin to choose the share URL #426

Open tionis opened 2 years ago

tionis commented 2 years ago

It would be awesome if an admin could choose the share URL when uploading, so that they could for example recreate shares or use vanity URLs (which may of course be easier to guess)

tionis commented 2 years ago

This would be especially useful in combination with #412

camathieu commented 2 years ago

412 has been implemented already :)

To confirm, by "choose URL" you mean an extra upload parameter where the admin could choose the download path of an upload (on the same download domain) ?

Like plik --server https://plik.root.gg --download-path /myfile myfile would lead the the file being exposed on https://plik.root.gg/myfile

Honestly I like the idea a lot. And it can be a very fun one to implement. We'll have to blacklist a few keywords as we had the very bad idea to not use a /api prefix for API when we created the project 8 years ago but that's not a big deal.

tionis commented 2 years ago

Yeah exactly something like that

tionis commented 2 years ago

I actually got a few more feature ideas but don't want to spam the repo, should I still post them as issues or do you have a forum/room for discussion?

camathieu commented 2 years ago

We have a telegram channel if you want to chat.

https://t.me/plik_rootgg

On Sat, 9 Apr 2022, 22:00 Tionis, @.***> wrote:

I actually got a few more feature ideas but don't want to spam the repo, should I still post them as issues or do you have a forum/room for discussion?

— Reply to this email directly, view it on GitHub https://github.com/root-gg/plik/issues/426#issuecomment-1094115979, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQ5XPWTI7DND3L4DFQUBQTVEHOTZANCNFSM5S5Y7MNA . You are receiving this because you commented.Message ID: @.***>

camathieu commented 2 years ago

This change as well as a few other requires that file names are unique in an upload so that it's possible to not rely on the uploadID/fileID everywhere. Changing milestone to 1.3.7.