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.

SafeCracker File Uploads & Memory Limit

July 28, 2011 5:52pm

Subscribe [2]
  • #1 / Jul 28, 2011 5:52pm

    Wade Sakundiak

    7 posts

    So…here’s the deal. I’ve got a SafeCracker form which includes two SafeCracker File fields. The issue I’m running into is: when an Admin logs in and uploads a file from the front-end, magic happens and the file is uploaded. If a member (of a group with uploading privileges who is not an admin) attempts to upload a file, the user is presented with a blank screen upon submission and the file is not uploaded. PHP Errors on, I receive this message:

    Fatal error: Allowed memory size of 152807913 bytes exhausted (tried to allocate 30317609 bytes) in /system/codeigniter/system/core/Common.php on line 492

    PHP Memory is at 128M, upload_max_filesize is cranked to 100M while I’ve been trying to figure out the issue. Any ideas what is going on here?

  • #2 / Jul 29, 2011 11:51am

    Sue Crocker

    26054 posts

    Hi, Wade. If the file is a very small .jpg file, does the problem still occur? What kind of file are you attempting to upload? I suspect it might have to do with XSS cleaning which takes up more memory.

  • #3 / Jul 29, 2011 11:58am

    Wade Sakundiak

    7 posts

    Uploading small .jpg’s works. The files I’m attempting to upload are video’s which are roughly 18 MB in size. I’ll see if I can turn off XSS Cleaning. Is that a hidden config variable?

  • #4 / Jul 29, 2011 12:03pm

    Sue Crocker

    26054 posts

  • #5 / Jul 29, 2011 12:04pm

    Wade Sakundiak

    7 posts

    Game on Sue! Thanks so much, that worked like a charm. I’m going to have to remember that one!

  • #6 / Jul 29, 2011 12:51pm

    Sue Crocker

    26054 posts

    Glad that worked for you.. If anything else comes up, please do let us know in a new thread..

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

ExpressionEngine News!

#eecms, #events, #releases