Spaces:
Running
Running
Update server.py
Browse files
server.py
CHANGED
|
@@ -27,7 +27,7 @@ else:
|
|
| 27 |
uploads_dir.mkdir(exist_ok=True)
|
| 28 |
|
| 29 |
# Configuration
|
| 30 |
-
MAX_FILE_SIZE = 16 * 1024 # 16MB
|
| 31 |
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'odp', 'ods'}
|
| 32 |
|
| 33 |
def allowed_file(filename):
|
|
|
|
| 27 |
uploads_dir.mkdir(exist_ok=True)
|
| 28 |
|
| 29 |
# Configuration
|
| 30 |
+
MAX_FILE_SIZE = 16 * 1024 * 1024 # 16MB
|
| 31 |
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'odt', 'odp', 'ods'}
|
| 32 |
|
| 33 |
def allowed_file(filename):
|