1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 The uploaded file is too large for the server to process.

Discussion in 'Troubleshooting and Problems' started by xenTheory, Jan 14, 2013.

  1. xenTheory

    xenTheory Active Member

    I've searched the forum, no suggestions working there.

    I have other websites hosted with a max file size of 512MB set in php.ini and other places and that works fine, it just suddenly stopped working on XF. I watch and see it uploads a 128MB test file, but then produces the error.

    Execution time, php and apache limits are all set correctly.

    Any ideas why it would suddenly stop working on XF?

    Piers

    Code:
    Uploaded 132268032/134217728 bytes. attachment_editor.js:14
    Uploaded 132972544/134217728 bytes. attachment_editor.js:14
    Uploaded 133644288/134217728 bytes. attachment_editor.js:14
    Uploaded 134218748/134217728 bytes. attachment_editor.js:14
    XenForo.activate(
    [div.xenOverlay __XenForoActivator, constructor: function, init: function, selector: "", jquery: "1.5.2", size: function…]
    ) xenforo.js:191
    AttachmentUploadError:
    d.Event
    attachment_editor.js:15
    All files uploaded. 
     
  2. Digital Doctor

    Digital Doctor Well-Known Member

    what type of file ? Image ?
     
  3. Digital Doctor

    Digital Doctor Well-Known Member

  4. xenTheory

    xenTheory Active Member

    It's a zip file, already searched the forum and read those threads. It's not a shared server, well technically it is in that I host other sites and customers on my servers but they all have the same setup and only XF has an issue with uploads.
     
  5. Jeremy P

    Jeremy P Well-Known Member

    Have you checked Apache error logs to see what they say about the request?
     
    Chris D likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    As ever, mod_security does some funky things. So if that is a recent addition to your setup, that could explain why the behaviour has suddenly changed.
     
  7. xenTheory

    xenTheory Active Member

    Ah, just looked through the Apache log - 403. No idea why and will look into it.
     
  8. xenTheory

    xenTheory Active Member

    Just checked and the attachments directory has 0755 which it's always had, no idea why there's 403 errors in the logs.
     
  9. xenTheory

    xenTheory Active Member

    Hmm, still not working - any ideas anyone?
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    I mentioned mod_security. Is this enabled, is it potentially blocking the file?
     
  11. Digital Doctor

    Digital Doctor Well-Known Member

    If it is a mod_security thing, smaller files with the same name will give just as much trouble.
    128 Mb files are quite large for forum uploads.
    This should be fixable .... but attaching 10 of those will make backups a pain.

    Have you read the other threads ?
    Posting your settings discussed in the other threads seems like the next step but you haven't posted anything.

    Does a 50 Mb file attach OK ? with the same name ?
     
  12. xenTheory

    xenTheory Active Member

    I host a lot of firmware averaging around 220MB per zip. I've managed to fix it now - was an issue with MySQL and space :(
     
  13. Digital Doctor

    Digital Doctor Well-Known Member

    Post the details so people can benefit from your situation.
     
  14. xenTheory

    xenTheory Active Member

    It was a server-side issue with MySQL mixed with an unstable kernel and a small hardware issue. I could go into more detail but it seems unlikely that other users will have the same issue - for most it seems to be about the configuration (exec. times, limits etc) which were all set correctly.
     

Share This Page