Closed (fixed)
Project:
Media Directories
Version:
8.x-1.0-rc3
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2020 at 10:51 UTC
Updated:
9 Aug 2020 at 22:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ytsurkThank you for reporting this issue.
I'll have a look at this soonish ...
Comment #3
arjunonemail@gmail.com commentedComment #4
ytsurkI can confirm that we do not respect the upload validators set by the source field (only file extensions ..).
So here a patch taking the min and max dimensions and size into account.
If no size is specified on the field, it uses the environments size.
Comment #5
ytsurkRe-ordered some lines. (This patch is broken)
Comment #6
ytsurkAgain ..
Comment #7
ytsurkThe combined upload should also respect the validators, and does now :D
Comment #8
ytsurkTypo
Comment #9
ytsurkRemoved hard-coded value ...
Comment #10
arjunonemail@gmail.com commentedThank you ytsurk! it is working fine. for another media library issue we have already patch https://www.drupal.org/project/drupal/issues/3008292
Comment #11
ytsurkThanks for reviewing arjun.
I re-used exactly that code from the issue you mentioned.
FYI: I opened also this core issue regarding the max filesize error message #3156949: Filename is not shown in the maximum allowed file size error message (w/o using the file_validate_size upload validator). If you expect the same, it would be nice you could add a comment there too.
Comment #12
ytsurkComment #13
ytsurkComment #14
ytsurkComment #16
ytsurk