talawa-api / Exports / utilities/reuploadDuplicateCheck
Ƭ TypeImagePath: string
| InterfaceUrlRequestObject
| InterfaceBufferObject
src/utilities/reuploadDuplicateCheck.ts:15
▸ reuploadDuplicateCheck(oldImagePath
, newImagePath
): Promise
<boolean
>
This function determines whether a user or an organisation is attempting to re-upload the same profile photo or organisation image.
Name | Type | Description |
---|---|---|
oldImagePath |
null | TypeImagePath |
Path of a current Org/User image of type: TypeImagePath . |
newImagePath |
TypeImagePath |
Path of a new image of type: TypeImagePath . |
Promise
<boolean
>
If the identical image is trying to reuploaded, true
; otherwise, false
.
Remarks
This is a utility method.