mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	server: Fix import when no meta (closes #281)
This commit is contained in:
		
							parent
							
								
									89314fac03
								
							
						
					
					
						commit
						bc5a1de9b7
					
				| @ -457,7 +457,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo | ||||
|         } | ||||
| 
 | ||||
|         let { mime } = noteMeta ? noteMeta : detectFileTypeAndMime(taskContext, filePath); | ||||
|         if (!mime) { | ||||
|         if (mime == null) { | ||||
|             throw new Error("Unable to resolve mime type."); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran