1

I have set a file size limit of 4mb for the file type field.

Current behavior When a file greater than 4mb is attached (10mb.jpg) and upload button is clicked, there is a message shown that mentions. "The specified file 10mb.jpg could not be uploaded. The file is 10 MB exceeding the maximum file size of 4 MB..

enter image description here

Now when a file size of less than suggested limit and extensions ( 182kbs - 800px-pizigani_1367_chart_10mb.jpg) is attached and upload button hit, the message still stays and does not go away.

enter image description here

Expected Behavior:
On attaching and hitting the upload button for the file of correct size, the error message should not be displayed.

Let me know if this has been rectified in a later release or is still occurring for others.

Note: If the upload button is not hit and directly the webform is submitted, the functionality does work fine. Thus there seems to be an issue in client side validation.

4
  • what is the file size of: 800px-pizigani_1367_chart_10mb.jpg
    – user5482
    Feb 17, 2015 at 17:38
  • Check the console for JS errors
    – Clive
    Feb 17, 2015 at 17:42
  • @user5482 182kbs
    – pal4life
    Feb 17, 2015 at 18:28
  • @Clive No JS errors in chrome console
    – pal4life
    Feb 17, 2015 at 18:28

1 Answer 1

0

Have you checked PHP's own maximum upload file size?

Default in php.ini is usually this:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2M

You can check your own site's setting at your sites /admin/reports/status/php

5
  • The issue is in regards to the misleading error message generated irrespective of the file size. If a client side error is generated for a greater file size then it should go away when that error is rectified and not stay there. Thanks.
    – pal4life
    Feb 20, 2015 at 21:59
  • If you change the php.ini, please remember to reload/restart the webservice, and maybe even clear the Drupal caches. Feb 23, 2015 at 11:09
  • Now I see that you also filed a bug report in the Webform Module's issue queue (drupal.org/node/2428073). I suppose you have solved your problem now - great! Feb 23, 2015 at 11:20
  • Nah Its not resolved yet, we will see when we get an update with core and check if its still exist to fill a bug with core.
    – pal4life
    Feb 24, 2015 at 19:36
  • Good luck! I hope your webform works properly now that you have corrected the underlying configurations. Feb 25, 2015 at 20:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.