ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE 2.4 fails to display error for file uploads exceeding upload limit

March 12, 2012 6:24pm

Subscribe [3]
  • #1 / Mar 12, 2012 6:24pm

    webslinger

    14 posts

    Running EE 2.4.0, using the Safecracker File upload fieldtype, files that exceed the maximum file size limit for the designated folder’s file upload preferences do not prompt an error in either the CP or via Safecracker form submit.  They do not upload, but also do not throw an error.  Files that are within the upload limits successfully upload.  For what it’s worth, our PHP memory limit is 128MB.  The folder is set with correct permissions and you can upload if obeying the maximum file size limit.  Not throwing the error is creating a problem with our Safecracker forms, as users are not notified that they submitted a file that was too big.

  • #2 / Mar 13, 2012 12:57pm

    Shane Eckert

    7174 posts

    Hello webslinger,

    I am sorry to hear you are running into this problem.

    Is this error not showing in the Control Panel or is this on the front end via a SC form?

    If it is the form, can you show me an example of a form that is in use that does not show the error?

    Thank you,

  • #3 / Mar 13, 2012 1:00pm

    webslinger

    14 posts

    The error does not show in the CP (or via the SC form).  PM me if you’d like admin access to the site.  Thanks!

  • #4 / Mar 13, 2012 1:11pm

    Shane Eckert

    7174 posts

    Hey webslinger,

    Please see the attached. I get an error in 2.4. Do you not get anything like this? I have my file limit set to 5 bytes so that it fails on everything. I uploaded a 300K file with safecracker form field and the error worked for me.

    Can you confirm that you do not see this error?

    You are on version 2.4?

    Thank you,

  • #5 / Mar 13, 2012 1:17pm

    webslinger

    14 posts

    I do not get this error in version 2.4 ... weird.  We have the limit set to 500 KB (512000 bytes), images that are less than this get successfully uploaded and those larger do not without an error.  I just reduced the file limit to 5 bytes and still get no error when uploading a small image; it just doesn’t upload.

  • #6 / Mar 13, 2012 1:23pm

    webslinger

    14 posts

    I created a test channel with a single field: Safecracker file upload, max file size 5 bytes.  Still no error uploading a file.

  • #7 / Mar 13, 2012 1:30pm

    Shane Eckert

    7174 posts

    Hey webslinger,

    Well that’s not fun.

    Just so I know we are running the same test, this is in the Control Panel right?

    So you do not get any errors if the file is too large. We have the same settings but I get the error. Are you setting the file size limit on your file upload destination? That is where the constraint is coming from, right?

    I have a feeling we may need to take a look. Let me know the answer to my semi-questions above. We will go from there.

    Thanks,

  • #8 / Mar 13, 2012 1:44pm

    webslinger

    14 posts

    Yes, testing from the Control Panel.  The upload constraint is from the File Upload Preferences for the designated folder.  Fyi, both PHP memory limit and upload_max_filesize are larger than the limits we’re applying through EE.

  • #9 / Mar 14, 2012 1:16pm

    webslinger

    14 posts

    Any update on this?  Thanks!

  • #10 / Mar 14, 2012 4:01pm

    Shane Eckert

    7174 posts

    Hello webslinger,

    I have asked someone from my team to reach out to you. Please be on the lookout for an email.

    Thank you,

  • #11 / Mar 19, 2012 2:05pm

    Kevin Smith

    4784 posts

    Looks like this is the result of a bug in EE, which has now been reported. Thanks to webslinger for helping us hunt it down!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases