• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Issue with image uploads in Products section

Installing Bagisto
3
10
445
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 23 Sept 2024, 18:17

    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 24 Sept 2024, 06:24

      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 30 Sept 2024, 21:11

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

        1 Reply Last reply Reply Quote 0
        • Rishabh-Webkul
          Rishabh-Webkul last edited by 1 Oct 2024, 04:20

          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 3 Oct 2024, 04:29 Reply Quote 0
          • M
            magickalartisans @Rishabh-Webkul last edited by 3 Oct 2024, 04:29

            @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 3 Oct 2024, 04:35 Reply Quote 0
            • M
              magickalartisans @magickalartisans last edited by 3 Oct 2024, 04:35

              @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 3 Oct 2024, 06:17

                Hello @magickalartisans

                Kindly run the command below at the root of Bagisto.

                php artisan storage:link

                Thanks & Regards

                M 1 Reply Last reply 7 Oct 2024, 04:06 Reply Quote 0
                • M
                  magickalartisans @Rishabh-Webkul last edited by 7 Oct 2024, 04:06

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

                  ERROR The [public/storage] link already exists.

                  M 1 Reply Last reply 7 Oct 2024, 04:09 Reply Quote 0
                  • M
                    magickalartisans @magickalartisans last edited by 7 Oct 2024, 04:09

                    @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 7 Oct 2024, 04:50 Reply Quote 0
                    • A
                      amit-webkul @magickalartisans last edited by 7 Oct 2024, 04:50

                      Hello @magickalartisans ,

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

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post