Check Duplicates
Advisory duplicate check before upload: by name and size, then by MD5.
Advisory duplicate check before upload: by name and size, then by MD5.
Arguments
projectId*ID!Target project.
candidates*Files to check.
- returns
An advisory duplicate found before the bytes are sent.
name*String!Candidate name as sent.
size*BigInt!Candidate size as sent.
md5?StringCandidate MD5 as sent, null when not sent.
match*String!name: same name and size (hash the file and ask again with md5); exact: identical bytes are already in the project.
existingFileId*ID!Id of the existing file.
existingName*String!Name of the existing file.
query CheckDuplicates($projectId: ID!, $candidates: [DuplicateCandidateInput!]!) { checkDuplicates(projectId: $projectId, candidates: $candidates) { name size md5 match existingFileId existingName }}