An Event or any other possibility to interfer with file uploads #45434
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
developer experience
enhancement
How to use GitHub
Is your feature request related to a problem? Please describe.
I tried to get help in the forum but there was not a good answer to my question so I guess there is non at this moment. What we want to do is writing an antivirus (build on our own product) for nextcloud. Where we are struggling right now is to interfer with uploads. We want to stop uploads when we find a virus in the uploaded file, ideally with the file not getting available in nextcloud but at least with the guarantee, that no user can download it before we scanned the file.
We already looked into the files_antivirus and the ransomware protection apps. Both use the function connectHook to connect a FileSystem Wrapper where you can add functions to fopen which would be ideal for us, but the connectHook function is deprecated since version 21.
Describe the solution you'd like
We want to stop uploads when we find a virus in the uploaded file, ideally with the file not getting available in nextcloud but at least with the guarantee, that no user can download it before we scanned the file.
Describe alternatives you've considered
We considered to implement the connectHook for now, but that leaves a bad taste because it is already deprecated for so long.
Additional context
The text was updated successfully, but these errors were encountered: