MapComplete/src/Logic/ImageProviders/ImageUploader.ts

20 lines
465 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
*/
uploadImage(
blob: File,
2024-10-19 14:44:55 +02:00
currentGps: [number, number],
author: string,
noblur: boolean
): Promise<UploadResult>
}
2024-10-19 14:44:55 +02:00
export interface UploadResult {
key: string
value: string
absoluteUrl: string
}