MapComplete/src/Logic/ImageProviders/ImageUploader.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
453 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,
currentGps: [number,number],
author: string,
noblur: boolean
): Promise<UploadResult>
}
export interface UploadResult{ key: string; value: string, absoluteUrl: string }