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

Error with File upload

Discussion in 'Troubleshooting and Problems' started by Martijn, Jan 17, 2011.

  1. Martijn

    Martijn Member

    In my working field we have large pdf reports and powerpoint presentations.
    So on my forum I want users to be able to upload large files (max filesize = 64 mb).

    I've uploaded a .htaccess file to the server with php_value upload_max_filesize 64M
    Also I changed the Xenforo options to 65536 KB, maximum attachment size

    First I could upload 2 MB-files, after the changes I now can upload 8 MB-files
    When I upload a 16 MB file, I get the following error :

    Security error occurred. Please press back, refresh the page, and try again.

    The error doesn't give much info.
    Is this an Xenforo error, or has it to do with my hosting company ?

    Thanks in advance.
  2. Pepelac

    Pepelac Well-Known Member

    Check also a POST_MAX_SIZE value
    Martijn likes this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That error has to do with xenForo's security token which is included in all forms.

    Just a guess... do you have suhosin installed in your PHP configuration? Suhosin sets limits on requests and can truncate requests exceeding those limits. I have seen this result in a security error before.
  4. Martijn

    Martijn Member

    Changing The Post_Max_size did the job. Thanks Pepelac!
    Pepelac likes this.
  5. Pepelac

    Pepelac Well-Known Member

    You are welcome :)

Share This Page