-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
1077 Set 4MB size limit for images #1605
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1605 +/- ##
============================================
+ Coverage 13.73% 13.85% +0.11%
- Complexity 453 455 +2
============================================
Files 257 258 +1
Lines 8503 8476 -27
Branches 881 873 -8
============================================
+ Hits 1168 1174 +6
+ Misses 7284 7250 -34
- Partials 51 52 +1 ☔ View full report in Codecov by Sentry. |
src/main/java/ai/elimu/web/content/multimedia/image/ImageCreateController.java
Outdated
Show resolved
Hide resolved
src/main/java/ai/elimu/web/content/multimedia/image/ImageCreateController.java
Outdated
Show resolved
Hide resolved
src/main/java/ai/elimu/web/content/multimedia/image/ImageCreateController.java
Outdated
Show resolved
Hide resolved
@tomaszsmy Do you think we should also reduce from 10MB to 4MB in
|
I think that the change may cause error if in table are any data which has size > 4MB |
…es' into 1077_Set_4MB_size_limit_for_images
@tomaszsmy Good point! And you're right, yes we do: [webapp-eng]> SELECT id, LENGTH(bytes) FROM Image WHERE LENGTH(bytes) > 4194304;
+-----+---------------+
| id | LENGTH(bytes) |
+-----+---------------+
| 4 | 4901733 |
| 449 | 6144932 |
+-----+---------------+
2 rows in set (0.05 sec) So we should leave it at 10MB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me 🙂
Can you also add the same restriction to the ImageEditController
?
#1077