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

Implementing Guest Uploads #107

Open
Kwonunn opened this issue Sep 17, 2023 · 2 comments
Open

Implementing Guest Uploads #107

Kwonunn opened this issue Sep 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Kwonunn
Copy link
Contributor

Kwonunn commented Sep 17, 2023

Plan

I'd like to work on implementing guest uploads. The way I envision this is as follows:

There is a new tab in the admin panel where the admin can view, create, and delete guest tokens.

There is a new publically accessible /guestUpload URL. This presents the user with an input field for entering the guest token they received from the admin. When a valid token is entered it presents the user with the standard upload options we also find in the admin panel. Uploads done this way end up in the same list of files as when the admin uploads something.

Problems

I've already done a little preliminary work and I've come up with some questions:

  • How should authentication be handled?
    • Should the guest tokens be a special kind of API token?
    • Should the guest tokens be a whole new object in the database?
  • Should the guest uploads reuse existing endpoints or should new ones be created?

Future features

If this works it would be nice to add some features like:

  • A maximum number of uploads for a token
  • A storage quotum for a token
  • Guest token expiry
@Forceu
Copy link
Owner

Forceu commented Sep 17, 2023

Thank you very much! I was strongly considering such a feature as well, ideally similar to Dropbox's request feature. So far I haven't started implementing it, as it would require a lot of rewriting.

Regarding your questions:

I know the code is not super easy to read, if you need any pointers or have questions, let me know!

@Kwonunn
Copy link
Contributor Author

Kwonunn commented Sep 17, 2023

Thanks for the pointers, I'll start cobbling something together. I am busy with uni, so I'm not really sure how soon I'll have something to show.

@Forceu Forceu added the enhancement New feature or request label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants