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

EZEE-3455: [Image upload] no validation message for files bigger than 2mb #1698

Merged

Conversation

lucasOsti
Copy link
Contributor

@lucasOsti lucasOsti commented Jan 28, 2021

Question Answer
Tickets https://issues.ibexa.co/browse/EZEE-3455
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Screenshot from 2021-01-28 13-59-36

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@lucasOsti lucasOsti changed the title EZEE-3435: [Image upload] no validation message for files bigger than 2mb EZEE-3455: [Image upload] no validation message for files bigger than 2mb Jan 28, 2021
* @returns {Object}
*/
showFileSizeError() {
showFileSizeNotice() {
Copy link
Member

Choose a reason for hiding this comment

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

This is a BC break

@@ -27,7 +27,7 @@
}

if (!isEmpty && maxFileSize > 0 && input.files[0] && input.files[0].size > maxFileSize) {
result = this.showFileSizeError();
input.dispatchEvent(new CustomEvent('ez-invalid-file-size'));
Copy link
Member

Choose a reason for hiding this comment

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

This is a BC break

@lucasOsti lucasOsti requested a review from dew326 January 28, 2021 14:54
@lucasOsti lucasOsti force-pushed the EZEE-3455-Added-notice-file-size branch from 7f687de to dea4fe3 Compare January 29, 2021 10:24
@lserwatka lserwatka merged commit 5b52004 into ezsystems:master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants