Also, just FYI, the docs you used are the old docs, the new ones are at docs.nodebb.org
You can open an issue at github.com/nodebb/docs if you wish for a change to be made
This is a simple first pass at adding tracking metadata for file uploads.
@Shard Looks interesting! Thanks for sharing
It is really interesting! If you make prune the file with the same filename (and maybe size), it will be an amazing work
@Giggiux I expect to get the pruning in later.
I'm working on some stuff that isn't probably gonna get shared and it depends on this kind of stuff existing so I figured I'd break that out for sharing.
Cool! Would be nice if some of this made its way to core eventually, as tracking files by uploader would be quite handy, I think...
I must get this installed on my test system and check this out. I hope it works with plugins like the S3 storage one.
@julian It could open a lot of possibilities also for future plugins like an Admin File Manager or IPB-style Download Panel
There are a few methodology issue I have here right now. The biggest being that the upload hook fires before a post is posted. This means files that aren't uploaded ( edited out after uploading ) with the post get stored.
I need to sort out how to move this to the post hook and process that instead. Learning curve and all.
For the moment, this works well enough for the other work I need so I'll be more focused that way for a bit, but I expect to come back to this for enhancement shortly.
If you have requests/feature ideas Add it to the issue tracker on bitbucket.