• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    "choose snapin name" when snapin too large - Trunk 7017

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    3
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andyroo54 Moderator
      last edited by andyroo54

      Not a big bug, but I’ve noticed if you try and upload a snapin that’s too large, it doesn’t report that error. Instead it just says “please choose a name”.

      Would be better if it says “snapin too large, please increase max file size”.

      OR maybe just increase the upload size for the php.ini file as part of the shell install script? 100M is too small… 3000M is probably a good sweet spot.

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @andyroo54 There actually is an upload error return code UPLOAD_ERR_INI_SIZE that we could check. Not sure if @Tom-Elliott has looked into this already.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @andyroo54
          last edited by

          @andyroo54 I’ve added error checking for getting the $_FILES[‘blah’][‘error’]

          The problem, in the case of too large a file chosen, is it completely blows away ALL $_POST/$_FILES variables as blank. This is why it’s reporting the “blank name”.

          Unfortunately there’s not much I can do to fix that.

          I have also added the suggested 3g limit instead of 100 megs. Of course, it won’t change this if your values have been set to other the the 8m (post_max_size) and 2m (upload_max_filesize).

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post

          266

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project