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

Per-user folders #12

Open
soren11 opened this issue Oct 24, 2020 · 4 comments
Open

Per-user folders #12

soren11 opened this issue Oct 24, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@soren11
Copy link

soren11 commented Oct 24, 2020

Is it possible to delete all (of a single) users files?

@soren11 soren11 changed the title Delete all/users files. Delete all/a users files. Oct 24, 2020
@soren11
Copy link
Author

soren11 commented Oct 24, 2020

If this is not possible, how would one upload files to the directory of their username?

@Xenthys
Copy link
Owner

Xenthys commented Oct 25, 2020

Hello, it is not possible for the API to know which file belongs to whom, it has no database and doesn't keep any kind of record anywhere unless you use a Discord webhook.

In such a case, the workaround would be to use a bot fetching all the messages in your log channel, extract all the filenames that were created by the user, then run a loop to delete them all… you guessed it, that's not practical at all nor recommended in any way.

Regarding the per-user folders, this is not (yet) possible but since you're the 2nd person to actually request that feature, I'll try to add it along with the other improvement I am thinking about. I'll keep this issue open and reference it when I commit said feature.

@soren11
Copy link
Author

soren11 commented Oct 25, 2020

Alright, Thanks.

@soren11 soren11 closed this as completed Oct 25, 2020
@soren11 soren11 reopened this Oct 25, 2020
@Xenthys Xenthys added the enhancement New feature or request label Feb 21, 2021
@Xenthys Xenthys changed the title Delete all/a users files. Per-user folders Feb 21, 2021
@Xenthys Xenthys self-assigned this Feb 21, 2021
@Xenthys Xenthys mentioned this issue Feb 21, 2021
@wolfier74
Copy link

wolfier74 commented Mar 19, 2021

This is really good idea. Per user folders. The image url should look then like www.mydomain.com/user/image.png , you don't need any bot that will be fetching messages from log channel. it does not matter that it will be not www.mydomain.com/image.png
This feature should be optional

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

3 participants