UX: add progress bar for uploading images

This commit is contained in:
Pieter Vander Vennet 2025-05-07 16:31:00 +02:00
parent bb33c43950
commit 221b572a1f
8 changed files with 45 additions and 18 deletions

View file

@ -1,3 +1,5 @@
import { UIEventSource } from "../UIEventSource"
export interface ImageUploader {
maxFileSizeInMegabytes?: number
/**
@ -8,7 +10,8 @@ export interface ImageUploader {
blob: File,
currentGps: [number, number],
author: string,
noblur: boolean
noblur: boolean,
progress?: UIEventSource<number>
): Promise<UploadResult>
}