fix: Check uploaded file size in widget and dashboard (#1975)

* File size check logic in widget

* set maxium file size

* update locale texts

* file size check in dashboard

* dynamincally set file size limit error message

* code climate review fixes

* add alert mixin

* move attahcment bus event to constants

* Move file size check logic to helper

* add specs for file size limit check helper

* changes as per review
This commit is contained in:
Muhsin Keloth
2021-04-15 22:28:19 +05:30
committed by GitHub
parent 45e43b0b89
commit ce4ce3c86c
12 changed files with 143 additions and 56 deletions

View File

@@ -48,5 +48,6 @@
"ERROR": "Message too short"
}
}
}
},
"FILE_SIZE_LIMIT": "File exceeds the {MAXIMUM_FILE_UPLOAD_SIZE} attachment limit"
}