Spaces:
Running
Running
Commit ·
d0eeb77
1
Parent(s): 828f670
Increase XMLHttpRequest timeout in upload.html to 5500000 ms for extended file uploads
Browse files- Dockerfile +1 -1
- static/upload.html +1 -1
Dockerfile
CHANGED
|
@@ -60,4 +60,4 @@ COPY entrypoint.sh /entrypoint.sh
|
|
| 60 |
RUN chmod +x /entrypoint.sh
|
| 61 |
ENTRYPOINT ["/entrypoint.sh"]
|
| 62 |
|
| 63 |
-
CMD ["bash", "-lc", "exec gunicorn 'app:create_app()' --bind 0.0.0.0:${PORT} --workers 1 --threads 1 --timeout ${GUNICORN_TIMEOUT:-
|
|
|
|
| 60 |
RUN chmod +x /entrypoint.sh
|
| 61 |
ENTRYPOINT ["/entrypoint.sh"]
|
| 62 |
|
| 63 |
+
CMD ["bash", "-lc", "exec gunicorn 'app:create_app()' --bind 0.0.0.0:${PORT} --workers 1 --threads 1 --timeout ${GUNICORN_TIMEOUT:-3500} --access-logfile - --error-logfile -"]
|
static/upload.html
CHANGED
|
@@ -466,7 +466,7 @@
|
|
| 466 |
};
|
| 467 |
|
| 468 |
// Optional timeout (ms) — adjust or remove as needed
|
| 469 |
-
xhr.timeout =
|
| 470 |
|
| 471 |
xhr.send(formData);
|
| 472 |
});
|
|
|
|
| 466 |
};
|
| 467 |
|
| 468 |
// Optional timeout (ms) — adjust or remove as needed
|
| 469 |
+
xhr.timeout = 5500000; // 8 minutes
|
| 470 |
|
| 471 |
xhr.send(formData);
|
| 472 |
});
|