Skip to content

Checksums on files / reliable up/download #11138

@tobiasKaminsky

Description

@tobiasKaminsky

To have reliable up- and downloads, generating a checksum on server is needed.

Upload

  • client generates checksum
  • client uploads file with checksum
  • server checks checksum and stores it after successfull upload

Download

  • client retrieves file and checksum
  • client checks checksum

On backward compatibility:

Upload:

  • if no checksum is provided, e.g. legacy apps / 3rd party apps -> generate checksum on server

Download:

  • legacy clients can simply ignore checksum

Additional for Android Files we can check if files are already uploaded (despite on relying on file names).

(this was shortly discussed in NC15 planning meeting)


Additionally, the ability to request checksum of file via endpoint from #25949:

  • client detects that file with same name already exists
  • we do not know if it is the same file
  • client requests only for this file via new(?) endpoint a checksum
  • client compares it
  • only if this differs, it presents conflict resolution dialog

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions