Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup old upload hint #1627

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions frontend/src/lobby/FileUpload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const FileUpload = () => {
const [files, setFiles] = useState([]);
const [errorMsg, setErrorMsg] = useState("");

// 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 <span class="filepond--label-action">Browse</span><br/>
// JSON (MTGJSON formatted, v4) and XML (Cockatrice formatted, v3 & v4) are supported.`
Expand All @@ -26,13 +27,6 @@ const FileUpload = () => {
return (
<fieldset className='fieldset'>
<legend className='legend'>Upload Custom Set</legend>

<p>
<i className="ion ion-android-alert" style={{ fontSize: 20, paddingRight: 5 }} />
Custom set uploads have been causing crashes.
While we debug this only XML uploads will be allowed
</p>

{ allowed.length &&
<FilePond
server={{
Expand Down