interface FileService {
    downloadFile(fileName: string): Promise<Buffer>;
    uploadFile(
        fileContent: Buffer,
        fileName: string,
        contentType: string,
    ): Promise<void>;
}

Methods

  • Uploads a file to a Google Cloud Storage bucket

    Parameters

    • fileContent: Buffer
    • fileName: string
    • contentType: string

    Returns Promise<void>