What isn't working? Any errors?
Also, I would probably use something based off a timestamp for the new file name to prevent collisions
Image was not moving to the specified folder, and Temp path url where C:/temp/... getting saved in db
yeah and that was cool using timestamp
Hello, I think I can help.
I had a similar problem. I tried to save the file in a directory inside the public folder. But the permissions of the folder didn't allow the server to save a file there. I wasn't getting any exceptions. You have to change the owner of the public/img folder to www-data or its permission (like for the app/storage folder).
Don't forget that the form must have been opened with the files option set to true.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community