forked from MapComplete/MapComplete
		
	Chore: rework image uploading, should work better now
This commit is contained in:
		
							parent
							
								
									6f5b0622a5
								
							
						
					
					
						commit
						94ba18785d
					
				
					 17 changed files with 548 additions and 238 deletions
				
			
		|  | @ -0,0 +1,15 @@ | |||
| export interface ImageUploader { | ||||
|   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 | ||||
|     ): Promise<{ key: string, value: string }>; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue