Skip to content

Ability to scan a file before it's uploaded. #78

Description

@Half-Shot

Is your feature request related to a problem? Please describe.

Some users would prefer to have their client scan on upload rather than just download, to prevent problematic files appearing on the server in the first place. This seems reasonable enough.

Describe the solution you'd like

An endpoint to scan a body of a file (optionally with an encrypted component) which performs the same check as the download routes, without having to use the content repository.

Describe alternatives you've considered

A transparent proxy to the CS /upload endpoint was considered but rejected. Clients could bypass the scanning with an encrypted file, so this needs to be done as two steps. One step for the client to test their file on the content scanner, and then once successful to upload the file to the homeserver. Scanning on download will remain in place for other clients so the upload scan merely serves as a friendly protection to the uploader.

Additional context

I have a PR for this in waiting, I do not expect any development other than review :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions