root-gg/plik

[Feature Request] add read-only share-url

tionis opened this issue · 8 comments

Add a read-only share-url so that each time you generate a share you get a read-only url which only allows listing files and downloading them and a read-write-url which allows changing the share like normal.

Hello @tionis,

I think this feature already exists.
When you create an upload you get the UploadToken.
If you pass the token you get read-write rights for this upload if you don't then you will get read only rights.

For example upload a file on plik.root.gg (while not being authenticated). You will be able to add/remove file to the upload but as soon as you refresh the page you'll lose the UploadToken and you will not be able to perform those actions anymore.

If you want to keep the read-write permissions you can use the "Admin URL" button to add the UploadToken to the URL, then refresh the page with this URL and you'll still have the read-write permissions.

image

I see, do you know which version plik.root.gg runs on?
I'm using the docker container and don't have the token as seen at plik.root.gg

It runs a dev build only a few commits behind master at : be8915d (1.3.5+)

https://plik.root.gg/version

What version of the docker image are you running ?

The UploadToken feature is really not recent.
Also it's unlikely that it is a web browser issue if it works on plik.root.gg and not on your env.

Ok, weird I will have to investigate this later, my instance is at https://yeet.digital, I guess we can consider this closed then?

Ah yes, it works great, thanks!