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

XF 1.4 Not able to upload files

Discussion in 'Troubleshooting and Problems' started by Parminder Singh Chahal, Aug 23, 2014.

  1. Parminder Singh Chahal

    Parminder Singh Chahal Active Member

    Hello,

    I am not able to attack pictures in posts. The bar reaches to 100% then an error message pops up saying :
    -------------
    The following error occurred
    There was a problem uploading your file.
    ------------
    I checked file permissions and found that :
    "data" is set to 0777
    "internal_data" is set to 0755

    Do these two directories need 0777 permission recursively?
     
  2. JulianD

    JulianD Well-Known Member

    Usually when this happens, there's an error entry on your server's logs. If you have access to them, you can easily find what's wrong.

    If you already have your permissions setup correctly, it may be something related to the maximum data allowed in a POST request.
     
  3. Parminder Singh Chahal

    Parminder Singh Chahal Active Member

    I changed internal_data file to 0777 recursively and the uploading problem is sorted.

    Do these two directories need 0777 permission recursively ? Is that how every one leaves them?

    I moved this forum to another server and thats when this problem occurred but on the old server uploading was not a problem even with 0755 permission.
     
  4. JulianD

    JulianD Well-Known Member

    Maybe when you moved all your files from one server to another, the owner of that files somehow changed in between. If that's the case, the Web server will no longer have write permissions on the files it has created and these type of errors may appear.

    Nothing to worry about though.
     
  5. Liam W

    Liam W Well-Known Member

    Or the old server may have been using suphp and the new one not.
     
  6. Parminder Singh Chahal

    Parminder Singh Chahal Active Member

    Old one is Nginx php-fmp and this one is apache with DSO as handler (Yeh I know) . The problem seems to be sorted now but the million dollar question now is :

    Do I leave these two directories at 0777 which I set recursively or do a 0755 recursively and then make the main directory 0777? What do you guys do with these files permissions?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    The recommendation is 0777 recursively.
     

Share This Page