nodepomf
nodepomf copied to clipboard
Delete upload
I'd appreciate the possibility to delete an upload afterwards, probably via delete link
This is possible through the kanri admin panel, do you mean as a user who uploaded a file?
Yes
If you could give me some hints where to implement which functionalities I'd probably implement it by myself and do a PR afterwards :)
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.
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.