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

XF 1.5 Upload file is too large

Discussion in 'Troubleshooting and Problems' started by tommydamic68, May 1, 2016.

  1. tommydamic68

    tommydamic68 Well-Known Member

    Members are getting this error when trying to upload a large image, I confirmed the issue as well, is it a server side issue? If so, how would I address it.

    Thanks in advance.


    Screen Shot 2016-05-01 at 9.45.21 AM.png
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

  3. tommydamic68

    tommydamic68 Well-Known Member

    Ive contacted my host and here is their response. "Hello,
    I've increased the PHP directives upload_max_filesize and post_max_size parameters from 2M to 256M by creating a php.ini file in the document root folder of your account 'admin'. Kindly check and let us know if there is anything else." Is that too much? Is there a recommended amount?
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    depends on the max file sizes you want... only you can determine that. ;)
     
  5. AndyB

    AndyB Well-Known Member

    Typically 50M should be enough, but having 256M is fine.
     
    imno007 likes this.
  6. tommydamic68

    tommydamic68 Well-Known Member

    Is it a matter of using up disc space on the server I guess?
     
  7. Tracy Perry

    Tracy Perry Well-Known Member

    That's one part of it.. the main is WHAT kind of file(s) are you expecting to be uploaded. If images, then I would typically NOT allow any any larger than 10-12MB uploads (of course, it then depends on what your XF max size is set at).
    The other aspect is if you are allowing uploads of actual files (think ISO's, .ZIP for programs, etc) then you may need larger. As I said, you can't just use a blanket number as some would have you believe. You HAVE to know what type of files you are allowing to attach/upload and what the maximum potential sizes may be.
     
  8. tommydamic68

    tommydamic68 Well-Known Member

    Images only. Most people point and shoot with cameras or phones and don't bother for resizing, thats the issue. So I would think you could figure out a blanket number, at least a "general" max image size with the popular items like iPhones and digital cameras.
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    yes & no. An image in .JPG format will be different in size to the same image in .PNG so you need to plan appropriately. Again, if images only, I'd probably keep it around 10-20MB. I have mine set at 4GB since I also allow uploading of ISO's on one of my sites. Haven't had anyone use it yet (was mainly for me) but I don't think there is a max setting for it (or none within reason).
     
  10. tommydamic68

    tommydamic68 Well-Known Member

    Well they are having an issue right now fixing the issue, I'm wondering if they need to reboot the VPS for the change to take effect.
     
  11. Ernest L. Defoe

    Ernest L. Defoe Well-Known Member

    May be something they need to actually set in the main php.ini for the VPS and not just in a file called php.ini in the root directory. No expert so I am just guessing.
     
  12. tommydamic68

    tommydamic68 Well-Known Member

    I don't get it, my host can upload the image fine no errors onto the site, I upload the same image and get the error - is this a permission based issue? He is a registered user and Im the administrator.
     
  13. Ernest L. Defoe

    Ernest L. Defoe Well-Known Member

    Check permissions just to be safe.
     
  14. tommydamic68

    tommydamic68 Well-Known Member

    Is there such a permission for an individual group for image size?
     
  15. Ernest L. Defoe

    Ernest L. Defoe Well-Known Member

    Not sure. On my phone at the moment. Maybe someone else can answer.
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    Screen Shot 2016-05-01 at 6.45.47 PM.png

    It's not specific to image size.. but attachments.
     

Share This Page