File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,6 @@ DEBUG=True
22DATABASE_URL = sqlite:///files/data.db 
33OPENCV_VIDEO_SOURCE = 0 
44SECRET_KEY = change-this-key 
5- JWT_SECRET_KEY = change-this-key-to-something-different 
5+ JWT_SECRET_KEY = change-this-key-to-something-different 
6+ #  2 MB max size upload (2 * 1024 * 1024)
7+ MAX_CONTENT_LENGTH = 2097152 
Original file line number Diff line number Diff line change 22from  flask_restful  import  Api 
33from  flask_jwt_extended  import  JWTManager 
44from  flask_cors  import  CORS 
5- from  flask_uploads  import  configure_uploads ,  patch_request_class 
5+ from  flask_uploads  import  configure_uploads 
66from  marshmallow  import  ValidationError 
77
88from  src .libs .image_helper  import  IMAGE_SET 
1818app  =  Flask (__name__ )
1919app .config .from_object ("src.settings.FlaskAppConfiguration" )
2020api  =  Api (app )
21- patch_request_class (app , 2  *  1024  *  1024 )  # 2 MB max size upload 
2221configure_uploads (app , IMAGE_SET )
2322jwt  =  JWTManager (app )
2423cors  =  CORS (app )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments