Bagisto Forum

    Bagisto

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

    Issue with image uploads in Products section

    Installing Bagisto
    3
    10
    424
    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.
    • M
      magickalartisans last edited by

      It seems that my image uploads are still using 'localhost' after migrating my page to production. I have already run all the following artisan commands;

      php artisan config:cache
      php artisan storage:link

      I have also verified my APP_URL as my public site address (pagan-crafts.com).

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @magickalartisans

        Can you please share the screenshot of your .env file?

        Thanks & Regards

        1 Reply Last reply Reply Quote 0
        • M
          magickalartisans last edited by

          EB7C8E58-6583-4910-BC22-98F59FF42693_1_105_c.jpeg

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            Hello @magickalartisans

            After checking your .env file you are getting this issue after migrating to the production because you are still using APP_ENV=local kindly change it to the production

            zdcDAc.png

            And if you still face any issues kindly let us know.

            Thanks & Regards

            M 1 Reply Last reply Reply Quote 0
            • M
              magickalartisans @Rishabh-Webkul last edited by

              @Rishabh-Webkul I tried that and I'm having the same problem. It appears that the uploads are still going to localhost instead of my public site.

              M 1 Reply Last reply Reply Quote 0
              • M
                magickalartisans @magickalartisans last edited by

                @magickalartisans If I provide you with my site details, can you log in and take a look at my config?

                1 Reply Last reply Reply Quote 0
                • Rishabh-Webkul
                  Rishabh-Webkul last edited by

                  Hello @magickalartisans

                  Kindly run the command below at the root of Bagisto.

                  php artisan storage:link

                  Thanks & Regards

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    magickalartisans @Rishabh-Webkul last edited by

                    @Rishabh-Webkul root@srv541354:/home/user/htdocs/bagisto# php artisan storage:link

                    ERROR The [public/storage] link already exists.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      magickalartisans @magickalartisans last edited by

                      @magickalartisans I removed the symbolic link and ran it again and got this;

                      root@srv541354:/home/user/htdocs/bagisto# php artisan storage:link

                      INFO The [public/storage] link has been connected to [storage/app/public].

                      root@srv541354:/home/user/htdocs/bagisto#

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        amit-webkul @magickalartisans last edited by

                        Hello @magickalartisans ,

                        After executing the command, has the issue been resolved or not?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post