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

New upload form field #5951

Merged
merged 59 commits into from
Jul 6, 2024
Merged

New upload form field #5951

merged 59 commits into from
Jul 6, 2024

Conversation

Cyperghost
Copy link
Contributor

Adds a new upload form field with the new upload pipeline (#5668)

Check whether only images can be uploaded
register the language phrase `wcf.global.button.replace`
…allows the call `....click()` in the case of a `click` event.
Add image viewer support
@Cyperghost Cyperghost requested a review from dtdesign June 26, 2024 10:01
Copy link
Member

@dtdesign dtdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good start, but I would like to see the logic between attachments and the upload form field to be deduplicated. Do not use inheritance, but instead check if you can provide some general purpose functions that offload the work. Especially the DOM and upload progress are pretty much set in stone anyway and can easily be handled by a common function.

@Cyperghost Cyperghost requested a review from dtdesign July 3, 2024 09:12
@Cyperghost Cyperghost marked this pull request as ready for review July 3, 2024 09:25
@Cyperghost Cyperghost merged commit 7804fad into master Jul 6, 2024
8 checks passed
@Cyperghost Cyperghost deleted the upload-form-field-v2 branch July 6, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants