Fix: frontend validator rejected .docx (added pandoc-family extensions to OKEXT)
Test / Tests (Python 3.12) (push) Canceled after 0s
Test / Tests (Python 3.12) (push) Canceled after 0s
This commit is contained in:
@@ -452,8 +452,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function start(f) {
|
function start(f) {
|
||||||
var OKEXT = /\.(epub|html?|txt|log|md|markdown|csv|tsv|json|xml|svg|png|jpe?g|webp)$/i;
|
var OKEXT = /\.(epub|html|htm|txt|log|md|markdown|csv|tsv|json|xml|svg|png|jpe?g|webp|tiff|bmp|pdf|docx|odt|rtf|tex|latex|org|adoc|rst)$/i;
|
||||||
if (!OKEXT.test(f.name)) { flashError('Unsupported file type — accepted: .epub .html .md .txt .log .csv .tsv .json .xml .svg .png .jpg .webp'); return; }
|
if (!OKEXT.test(f.name)) { flashError('Unsupported file type — accepted: .epub .html .htm .txt .log .md .markdown .csv .tsv .json .xml .svg .png .jpg .jpeg .webp .tiff .bmp .pdf .docx .odt .rtf .tex .latex .org .adoc .rst'); return; }
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
form.append('file', f);
|
form.append('file', f);
|
||||||
showStatus();
|
showStatus();
|
||||||
|
|||||||
Reference in New Issue
Block a user