Spaces:
Sleeping
Sleeping
Sean Carnahan commited on
Commit ·
146de98
1
Parent(s): 65045aa
Increase max upload file size to 100MB
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ app = Flask(__name__, static_url_path='/static', static_folder='static')
|
|
| 62 |
CORS(app, resources={r"/*": {"origins": "*"}})
|
| 63 |
|
| 64 |
app.config['UPLOAD_FOLDER'] = 'static/uploads'
|
| 65 |
-
app.config['MAX_CONTENT_LENGTH'] =
|
| 66 |
|
| 67 |
# Ensure upload directory exists
|
| 68 |
os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
|
|
|
|
| 62 |
CORS(app, resources={r"/*": {"origins": "*"}})
|
| 63 |
|
| 64 |
app.config['UPLOAD_FOLDER'] = 'static/uploads'
|
| 65 |
+
app.config['MAX_CONTENT_LENGTH'] = 100 * 1024 * 1024 # 100MB max file size
|
| 66 |
|
| 67 |
# Ensure upload directory exists
|
| 68 |
os.makedirs(app.config['UPLOAD_FOLDER'], exist_ok=True)
|