Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Delete upload #18

Open
sn1c opened this issue Oct 19, 2016 · 5 comments
Open

Delete upload #18

sn1c opened this issue Oct 19, 2016 · 5 comments

Comments

@sn1c
Copy link

sn1c commented Oct 19, 2016

I'd appreciate the possibility to delete an upload afterwards, probably via delete link

@maxpowa
Copy link
Owner

maxpowa commented Oct 19, 2016

This is possible through the kanri admin panel, do you mean as a user who uploaded a file?

@sn1c
Copy link
Author

sn1c commented Oct 20, 2016

Yes

@sn1c
Copy link
Author

sn1c commented Oct 20, 2016

If you could give me some hints where to implement which functionalities I'd probably implement it by myself and do a PR afterwards :)

@Aareksio
Copy link
Contributor

Aareksio commented Oct 20, 2016

You need to add secret (delete) code to the database, then add a route for upload deletion, which accepts id + secret, check in the database if the secret is correct for given id, if so - delete the item...

In my opinion, if you were to implement such feature, making proper account system would be much better. Although I doubt it's needed for lightweight application that NPomf is.

@sn1c
Copy link
Author

sn1c commented Oct 20, 2016

I know how to implement it in theory but I don't know the structure of this application, that's why I asked him/her about it. An alternative would be the "self destruction" of files (see pastebin) after a specific time period which can be entered at upload.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants