my.fileSizeLimit = fileSizeLimit || globalThis.wo?.envar?.fileSizeLimit || 10485760
This commit is contained in:
		
							parent
							
								
									d33e87c3e1
								
							
						
					
					
						commit
						3c162e869f
					
				| @ -10,7 +10,7 @@ module.exports = { | ||||
|   initMy ({ ipfsProvider, ipfsStore, fileSizeLimit }) { | ||||
|     my.ipfsProvider = ipfsProvider | ||||
|     my.ipfsStore = ipfsStore | ||||
|     my.fileSizeLimit = fileSizeLimit | ||||
|     my.fileSizeLimit = fileSizeLimit || globalThis.wo?.envar?.fileSizeLimit || 10485760 | ||||
|     return this | ||||
|   }, | ||||
| 
 | ||||
| @ -35,7 +35,7 @@ module.exports = { | ||||
|       }, | ||||
|     }), | ||||
|     // fileFilter:function(req, file, cb) {},
 | ||||
|     limits: { fileSize: my.fileSizeLimit || 10485760 }, | ||||
|     limits: { fileSize: my.fileSizeLimit }, | ||||
|   }).single('file'), | ||||
| 
 | ||||
|   api: { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user