Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We have created a webform version 7.x-4.12 where we use a File field to upload a file of type txt pdf doc docx ppt pptx xls xlsx zip. We have set the max upload size to 10MB.
We are finding that we are able to upload a file that is bigger than 10MB and we consider this a huge issue as we want to limit the maximum file size. What is needed to get the max. file upload size to be 10MB? Ideally, if the file size exceeds 10MB, an error should be thrown as well letting the user know that they need to upload something smaller.
Comments
Comment #2
drup16 CreditAttribution: drup16 commentedTo provide an update here, I was able to upload a file that was 10.24MB is size, which is not the desired results.
Comment #3
drup16 CreditAttribution: drup16 commentedI see that during file upload, the parse_size function is used to calculate whether or not the file being upload is greater than our defined max upload size limit.
Is anyone else experiencing this issue?
Comment #4
drup16 CreditAttribution: drup16 commentedComment #5
anand.toshniwal93 CreditAttribution: anand.toshniwal93 as a volunteer and at QED42 commentedComment #6
anand.toshniwal93 CreditAttribution: anand.toshniwal93 as a volunteer and at QED42 commentedi'm unable to reproduce the issue.
Comment #7
DanChadwick CreditAttribution: DanChadwick at PreviousNext commented