Follow-up to #6174
When a user downloads a PDF - and this PDF equals to an already attached PDF, it should not be attached again.
Possible steps:
default.pdf exists
- Download as
default (1).pdf.
- Check if file content of
default.pdf equals file content of default (1).pdf (Use https://guava.dev/releases/21.0/api/docs/com/google/common/io/Files.html#equal-java.io.File-java.io.File-)
- If it is equal, just delete
default (1).pdf. Show notification that already linked. Finish.
- If not equal, add to linked files.
Follow-up to #6174
When a user downloads a PDF - and this PDF equals to an already attached PDF, it should not be attached again.
Possible steps:
default.pdfexistsdefault (1).pdf.default.pdfequals file content ofdefault (1).pdf(Use https://guava.dev/releases/21.0/api/docs/com/google/common/io/Files.html#equal-java.io.File-java.io.File-)default (1).pdf. Show notification that already linked. Finish.