forked from MapComplete/MapComplete
UX: add progress bar for uploading images
This commit is contained in:
parent
bb33c43950
commit
221b572a1f
8 changed files with 45 additions and 18 deletions
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue