ITR model update code
This commit is contained in:
12
AppCode/FileHandler.py
Normal file
12
AppCode/FileHandler.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
class FileHandler:
|
||||
ALLOWED_EXTENSIONS = {'pdf', 'docx', 'doc', 'xlsx', 'xls'}
|
||||
UPLOAD_FOLDER = os.path.join('static', 'uploads')
|
||||
|
||||
|
||||
@staticmethod
|
||||
def CHeckExistingOrCreateNewUploadFolder():
|
||||
#Wheteher path exists
|
||||
os.makedirs(FileHandler.UPLOAD_FOLDER, exist_ok=True)
|
||||
return
|
||||
Reference in New Issue
Block a user