Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Images in the captive portal are blocked

    Scheduled Pinned Locked Moved Captive Portal
    11 Posts 5 Posters 1.9k Views
    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.
    • B
      bero.k
      last edited by

      Hello,
      I have modified the captive portal template and added two images.
      The images are saved  the same pfsense server.

      But all devices on the network block these images and nothing appears in the captive portal but the text!.
      I have no idea why this is happening!

      Thnx.

      1 Reply Last reply Reply Quote 0
      • J
        jpt.ericsongmail.com
        last edited by

        rename your image
        from    image.jpg    to    captiveportal-image.jpg

        call your image with the same image name

        url(image.jpg)      to      url(captiveportal-image.jpg)

        hope it helps

        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by

          added to that:
          Goto Service => CaptivePortal en edit your portal settings.
          Goto the last tab "Filemanager".

          See the image file names.
          Draw your conclusions  ;)

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • B
            bero.k
            last edited by

            It works!
            Thank you very much guys, That was easy.
            Gertjan &  Online jpt.ericson@gmail.com

            1 Reply Last reply Reply Quote 0
            • J
              jpt.ericsongmail.com
              last edited by

              hit thanks please :) hehe

              1 Reply Last reply Reply Quote 0
              • E
                exofio
                last edited by

                Hi!
                I directly uploaded the images on var/db/cpelements ... should i change the file name to captiveportal-logo.jpg? Please help

                F 1 Reply Last reply Reply Quote 0
                • F
                  free4 Rebel Alliance @exofio
                  last edited by

                  @exofio you have a file manager on pfSense GUI. please use that instead

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    exofio @free4
                    last edited by

                    @free4 but the file image is too large :/

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      exofio @exofio
                      last edited by

                      it says The total size of all files uploaded may not exceed 1.00 MiB.

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG
                        Gertjan @exofio
                        last edited by

                        @exofio said in Images in the captive portal are blocked:

                        it says The total size of all files uploaded may not exceed 1.00 MiB.

                        That's a build in save guard.
                        You want to put videos or huge images on your login/logout/error page ?
                        I'm sure that thousands already created a nicely looking login pages using a few kilobytes of space.

                        I you really have to, take a look at the constraint : https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/services_captiveportal_filemanager.php - lines 109 -> 111.

                        So, use 'vinconfig', go to the captive portal section and define (== override) this "captiveportal_element_sizelimit" yourself.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        1 Reply Last reply Reply Quote 0
                        • E
                          exofio
                          last edited by

                          thank you. i am adding the school's default background.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.