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

Fix file verification in upload form #54

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

The-Voidwalker
Copy link
Member

@The-Voidwalker The-Voidwalker commented Nov 1, 2023

File form components can't be required (explicitly in the form) due to
some upstream weirdness.
Instead we'll have to check to see if the file is empty when processing
the form in onSubmit.
UploadBase::fetchFile() is a no-op (it doesn't do anything, so we can
replace it with our isEmptyFile check.

File form components can't be required (explicitly in the form) due to
some upstream weirdness.
Instead we'll have to check to see if the file is empty when processing
the form in onSubmit.
UploadBase::getFile() is a no-op (it doesn't do anything, so we can
replace it with our isEmptyFile check.
@The-Voidwalker The-Voidwalker merged commit 547ae05 into master Nov 1, 2023
5 checks passed
@The-Voidwalker The-Voidwalker deleted the patch-1_40compat branch November 1, 2023 01:21
paladox added a commit that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant