mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	add note
This commit is contained in:
		
							parent
							
								
									f85aa7b641
								
							
						
					
					
						commit
						2f009f7d49
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -203,6 +203,7 @@ export class ApiCallService implements OnApplicationShutdown {
 | 
			
		|||
		await stream.pipeline(multipartData.file, fs.createWriteStream(path));
 | 
			
		||||
 | 
			
		||||
		// ファイルサイズが制限を超えていた場合
 | 
			
		||||
		// なお truncated はストリームを読み切ってからでないと機能しないため、stream.pipeline より後にある必要がある
 | 
			
		||||
		if (multipartData.file.truncated) {
 | 
			
		||||
			cleanup();
 | 
			
		||||
			reply.code(413);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue