nodepomf icon indicating copy to clipboard operation
nodepomf copied to clipboard

Delete upload

Open sn1c opened this issue 8 years ago • 5 comments

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

sn1c avatar Oct 19 '16 13:10 sn1c

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

maxpowa avatar Oct 19 '16 22:10 maxpowa

Yes

sn1c avatar Oct 20 '16 19:10 sn1c

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

sn1c avatar Oct 20 '16 19:10 sn1c

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.

Aareksio avatar Oct 20 '16 20:10 Aareksio

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.

sn1c avatar Oct 20 '16 20:10 sn1c