talawa-api / Exports / utilities/uploadImage
Module: utilities/uploadImage
Table of contents
Functions
Functions
uploadImage
▸ uploadImage(newImageFile
, oldImagePath
): Promise
<{ imageAlreadyInDbPath
: string
; newImagePath
: string
}>
Parameters
Name | Type |
---|---|
newImageFile | TypeNewImageFile |
oldImagePath | null | string |
Returns
Promise
<{ imageAlreadyInDbPath
: string
; newImagePath
: string
}>