MapComplete/src/Logic/ImageProviders/ImageUploader.ts

16 lines
420 B
TypeScript
Raw Normal View History

export interface ImageUploader {
2023-09-28 23:50:27 +02:00
maxFileSizeInMegabytes?: number
/**
* Uploads the 'blob' as image, with some metadata.
* Returns the URL to be linked + the appropriate key to add this to OSM
* @param title
* @param description
* @param blob
*/
uploadImage(
title: string,
description: string,
blob: File
2023-09-28 23:50:27 +02:00
): Promise<{ key: string; value: string }>
}