From d259257f3ad4a5d87bed158a1c4deb1be52da6d4 Mon Sep 17 00:00:00 2001 From: tooomm Date: Wed, 15 Jun 2022 10:15:10 +0200 Subject: [PATCH 1/2] cleanup --- frontend/src/lobby/FileUpload.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/src/lobby/FileUpload.jsx b/frontend/src/lobby/FileUpload.jsx index 8a3623ba..8677a339 100644 --- a/frontend/src/lobby/FileUpload.jsx +++ b/frontend/src/lobby/FileUpload.jsx @@ -16,6 +16,7 @@ const FileUpload = () => { const [files, setFiles] = useState([]); const [errorMsg, setErrorMsg] = useState(""); + // TODO: Custom set uploads have been causing crashes - needs debugging, only allow XML for now // const allowed = ["application/json", "text/xml"] // const label = `Drag & Drop your files here, or Browse
// JSON (MTGJSON formatted, v4) and XML (Cockatrice formatted, v3 & v4) are supported.` @@ -26,13 +27,6 @@ const FileUpload = () => { return (
Upload Custom Set - -

- - Custom set uploads have been causing crashes. - While we debug this only XML uploads will be allowed -

- { allowed.length && Date: Tue, 21 Jun 2022 09:43:12 +0200 Subject: [PATCH 2/2] Update FileUpload.jsx --- frontend/src/lobby/FileUpload.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lobby/FileUpload.jsx b/frontend/src/lobby/FileUpload.jsx index 8677a339..e67a701b 100644 --- a/frontend/src/lobby/FileUpload.jsx +++ b/frontend/src/lobby/FileUpload.jsx @@ -16,7 +16,7 @@ const FileUpload = () => { const [files, setFiles] = useState([]); const [errorMsg, setErrorMsg] = useState(""); - // TODO: Custom set uploads have been causing crashes - needs debugging, only allow XML for now + // TODO: Custom set uploads in JSON format have been causing crashes (#1432) - needs debugging, only allow XML for now // const allowed = ["application/json", "text/xml"] // const label = `Drag & Drop your files here, or Browse
// JSON (MTGJSON formatted, v4) and XML (Cockatrice formatted, v3 & v4) are supported.`