Support the ongoing development of Laravel.io →
posted 9 years ago
Input
Last updated 2 years ago.
0

What isn't working? Any errors?

Also, I would probably use something based off a timestamp for the new file name to prevent collisions

0

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

Last updated 9 years ago.
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

rdxrbn rdxrbn Joined 28 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.